Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lyse
tt
Commits
0721e99b
Commit
0721e99b
authored
Dec 20, 2020
by
Lysander Trischler
Browse files
Mark flawed scrolling code
parent
0155881c
Changes
1
Hide whitespace changes
Inline
Side-by-side
widgets.py
View file @
0721e99b
...
...
@@ -262,6 +262,8 @@ class VimListBox(urwid.ListBox):
key
=
"down"
elif
key
==
"k"
:
key
=
"up"
# TODO FIXUP does not work super flawless
elif
key
==
"ctrl e"
:
# scroll down without moving the cursor
x
=
self
.
get_focus_offset_inset
(
size
)[
0
]
...
...
@@ -274,7 +276,6 @@ class VimListBox(urwid.ListBox):
elif
key
==
"ctrl y"
:
# scroll up without moving the cursor
x
=
self
.
get_focus_offset_inset
(
size
)[
0
]
#self.x.set_text("size=%r, x=%r"%(size,x))
if
x
==
size
[
1
]
-
1
:
super
().
keypress
(
size
,
"up"
)
self
.
shift_focus
(
size
,
x
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment