summary refs log tree commit diff stats
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
parenta3d5f44b1c1a8b7ef7e56c33f03ce91cc38117a6 (diff)
downloadranger-6b1666df4664482644efb270f4e0215b469c8ffc.tar.gz
Catch a trivial ncurses exception
-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:
/cpp/.traces/equal?h=main&id=fb4836dc0f9dc84afa0b133c4e6ab1ad61653961'>^
6f5d7864 ^
9dc29482 ^
57699011 ^
6f5d7864 ^
9dc29482 ^
57699011 ^
6f5d7864 ^
9dc29482 ^




57699011 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28