diff options
author | hut <hut@lavabit.com> | 2009-12-28 22:42:08 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-12-28 22:42:08 +0100 |
commit | f376e337c0fd4a0a855bc868de3cb94865ca77c4 (patch) | |
tree | c969acdc21d6f35e3bdfd52879ea7bad6cdcc144 | |
parent | 2061a46e425daee933c40a5d030ec219c7cbca44 (diff) | |
download | ranger-f376e337c0fd4a0a855bc868de3cb94865ca77c4.tar.gz |
another fix
-rw-r--r-- | ranger/gui/widgets/filelist.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ranger/gui/widgets/filelist.py b/ranger/gui/widgets/filelist.py index 638222d3..9bbfb8f6 100644 --- a/ranger/gui/widgets/filelist.py +++ b/ranger/gui/widgets/filelist.py @@ -220,7 +220,9 @@ class FileList(Widget, DisplayableContainer): try: self.win.addnstr(self.y + line, self.x, text, self.wid) except: - break + # the last string will cause an error because + # ncurses tries to move out of the bounds + pass if self.display_infostring and drawed.infostring: info = drawed.infostring @@ -229,7 +231,9 @@ class FileList(Widget, DisplayableContainer): try: self.win.addstr(self.y + line, x, str(info) + ' ') except: - break + # the last string will cause an error because + # ncurses tries to move out of the bounds + pass self.color_at(self.y + line, self.x, self.wid, this_color) |