Commit 0721e99b authored by Lysander Trischler's avatar Lysander Trischler
Browse files

Mark flawed scrolling code

parent 0155881c
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment