about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-06-16 21:07:24 +0200
committerhut <hut@lavabit.com>2012-06-16 21:07:24 +0200
commit5aac03b4b405d30c973fb9d853ee2caffeac7013 (patch)
treec825d18a14afd53e5009d1b97c0c647361e9ccdc
parenta222f3149d625a41b1596140e8c13c98973331d8 (diff)
downloadranger-5aac03b4b405d30c973fb9d853ee2caffeac7013.tar.gz
gui.curses_shortcuts: partially reverted 0bb7e10b, it seems pointless
-rw-r--r--ranger/gui/curses_shortcuts.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py
index 43b583a6..cf6607b6 100644
--- a/ranger/gui/curses_shortcuts.py
+++ b/ranger/gui/curses_shortcuts.py
@@ -26,21 +26,19 @@ class CursesShortcuts(SettingsAware):
 		try:
 			self.win.addstr(*args)
 		except:
-			if len(args) > 1:
-				try:
-					self.win.addstr(*_fix_surrogates(args))
-				except:
-					pass
+			try:
+				self.win.addstr(*_fix_surrogates(args))
+			except:
+				pass
 
 	def addnstr(self, *args):
 		try:
 			self.win.addnstr(*args)
 		except:
-			if len(args) > 2:
-				try:
-					self.win.addnstr(*_fix_surrogates(args))
-				except:
-					pass
+			try:
+				self.win.addnstr(*_fix_surrogates(args))
+			except:
+				pass
 
 	def addch(self, *args):
 		try: