about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-03-05 11:12:58 +0100
committerhut <hut@lavabit.com>2012-03-05 11:12:58 +0100
commit6b1666df4664482644efb270f4e0215b469c8ffc (patch)
treec403caa8124a0b4074d99cb46540b1c40cc49abf /ranger
parenta3d5f44b1c1a8b7ef7e56c33f03ce91cc38117a6 (diff)
downloadranger-6b1666df4664482644efb270f4e0215b469c8ffc.tar.gz
Catch a trivial ncurses exception
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/browserview.py5
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: