summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-03-18 15:10:12 +0100
committernfnty <git@nfnty.se>2017-03-18 15:10:12 +0100
commitd842a31471e20ede89541d805a78081fe42f674b (patch)
treefe9ea3e1e7042ad49a9b0022958de41a2d0d59e4 /ranger
parent6b4c87186d42e8ac3f735acc206b07c631be381a (diff)
downloadranger-d842a31471e20ede89541d805a78081fe42f674b.tar.gz
gui.curses_shortcuts: Fix handling of strings for `add*` functions
Fixes #833
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/curses_shortcuts.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py
index 78aad240..ac067d01 100644
--- a/ranger/gui/curses_shortcuts.py
+++ b/ranger/gui/curses_shortcuts.py
@@ -35,7 +35,7 @@ class CursesShortcuts(SettingsAware):
 
         try:
             self.win.addstr(*args)
-        except curses.error:
+        except (curses.error, TypeError):
             if len(args) > 1:
                 self.win.move(y, x)
 
@@ -49,7 +49,7 @@ class CursesShortcuts(SettingsAware):
 
         try:
             self.win.addnstr(*args)
-        except curses.error:
+        except (curses.error, TypeError):
             if len(args) > 2:
                 self.win.move(y, x)
 
@@ -63,7 +63,7 @@ class CursesShortcuts(SettingsAware):
             args = [args[1], args[0]] + list(args[2:])
         try:
             self.win.addch(*args)
-        except curses.error:
+        except (curses.error, TypeError):
             pass
 
     def color(self, *keys):
pan> ^
39677ec ^








39677ec ^
adaa28a ^




849e631 ^
adaa28a ^


c47da14 ^
439e15d ^
c47da14 ^
586f663 ^
439e15d ^




16c67f3 ^
586f663 ^
650a1fb ^
439e15d ^

849e631 ^
439e15d ^


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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61