From 6b1666df4664482644efb270f4e0215b469c8ffc Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 5 Mar 2012 11:12:58 +0100 Subject: Catch a trivial ncurses exception --- ranger/gui/widgets/browserview.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index d386d389..ea04c1e0 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -215,7 +215,10 @@ class BrowserView(Widget, DisplayableContainer): ystart = self.hei - hei self.addnstr(ystart - 1, 0, "key command".ljust(self.wid), self.wid) - self.win.chgat(ystart - 1, 0, curses.A_UNDERLINE) + try: + self.win.chgat(ystart - 1, 0, curses.A_UNDERLINE) + except: + pass whitespace = " " * self.wid i = ystart for key, cmd in hints: -- cgit 1.4.1-2-gfad0