about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-12-28 22:42:08 +0100
committerhut <hut@lavabit.com>2009-12-28 22:42:08 +0100
commitf376e337c0fd4a0a855bc868de3cb94865ca77c4 (patch)
treec969acdc21d6f35e3bdfd52879ea7bad6cdcc144 /ranger
parent2061a46e425daee933c40a5d030ec219c7cbca44 (diff)
downloadranger-f376e337c0fd4a0a855bc868de3cb94865ca77c4.tar.gz
another fix
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/filelist.py8
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)