From 731f72dd2bb6976998d3c1588807fc3a654d06cc Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 14 Aug 2012 20:00:24 +0200 Subject: widgets.browsercolumn: Catch a "wmove() returned ERR" exception --- ranger/gui/widgets/browsercolumn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit 1.4.1-2-gfad0