diff options
author | hut <hut@lavabit.com> | 2012-03-05 11:12:58 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-03-05 11:12:58 +0100 |
commit | 6b1666df4664482644efb270f4e0215b469c8ffc (patch) | |
tree | c403caa8124a0b4074d99cb46540b1c40cc49abf | |
parent | a3d5f44b1c1a8b7ef7e56c33f03ce91cc38117a6 (diff) | |
download | ranger-6b1666df4664482644efb270f4e0215b469c8ffc.tar.gz |
Catch a trivial ncurses exception
-rw-r--r-- | ranger/gui/widgets/browserview.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: |