summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-14 20:00:24 +0200
committerhut <hut@lavabit.com>2012-08-14 20:00:24 +0200
commit731f72dd2bb6976998d3c1588807fc3a654d06cc (patch)
tree5bb93a78b03452547d3a3ac047f2fa37a619a592 /ranger
parent4c1bfd6bb30008545b9e7a8e9c3bf2c81e50f135 (diff)
downloadranger-731f72dd2bb6976998d3c1588807fc3a654d06cc.tar.gz
widgets.browsercolumn: Catch a "wmove() returned ERR" exception
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browsercolumn.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py
index 1cb943d2..981dd8fb 100644
--- a/ranger/gui/widgets/browsercolumn.py
+++ b/ranger/gui/widgets/browsercolumn.py
@@ -97,7 +97,10 @@ class BrowserColumn(Pager):
 		Example:
 		execute_curses_batch(0, [["hello ", 0], ["world", curses.A_BOLD]])
 		"""
-		self.win.move(line, 0)
+		try:
+			self.win.move(line, 0)
+		except:
+			return
 		for entry in commands:
 			text, attr = entry
 			self.addstr(text, attr)