about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-06 04:31:01 +0200
committerhut <hut@lavabit.com>2010-04-06 04:31:01 +0200
commit07c9e525fecac3908358ea88578b2a1cd303b85e (patch)
treeab2f2b2332386c2965bd7b7044729e9267b4b03d /ranger
parent6c98519a82ac73a11c6c19564eaf10a76d193290 (diff)
downloadranger-07c9e525fecac3908358ea88578b2a1cd303b85e.tar.gz
widgets.console: bugfix
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/console.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index d241d4cd..777ef3f6 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -165,10 +165,12 @@ class Console(Widget):
 			try:
 				chrkey = chr(keytuple[0])
 			except:
+				pass
+			else:
+				self.type_key(chrkey)
+			finally:
+				self.env.key_clear()
 				return
-			self.type_key(chrkey)
-			self.env.key_clear()
-			return
 
 		if cmd == self.commandlist.dummy_object:
 			return