summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/gui/curses_shortcuts.py18
-rw-r--r--ranger/gui/widgets/console.py4
2 files changed, 12 insertions, 10 deletions
diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py
index 4a3bb4b9..10a159a1 100644
--- a/ranger/gui/curses_shortcuts.py
+++ b/ranger/gui/curses_shortcuts.py
@@ -39,19 +39,21 @@ class CursesShortcuts(SettingsAware):
 		try:
 			self.win.addstr(*args)
 		except:
-			try:
-				self.win.addstr(*_fix_surrogates(args))
-			except:
-				pass
+			if len(args) > 1:
+				try:
+					self.win.addstr(*_fix_surrogates(args))
+				except:
+					pass
 
 	def addnstr(self, *args):
 		try:
 			self.win.addnstr(*args)
 		except:
-			try:
-				self.win.addnstr(*_fix_surrogates(args))
-			except:
-				pass
+			if len(args) > 2:
+				try:
+					self.win.addnstr(*_fix_surrogates(args))
+				except:
+					pass
 
 	def addch(self, *args):
 		try:
diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py
index 406a2fe9..2376ba5a 100644
--- a/ranger/gui/widgets/console.py
+++ b/ranger/gui/widgets/console.py
@@ -79,9 +79,9 @@ class Console(Widget):
 		line = WideString(self.line)
 		overflow = -self.wid + len(self.prompt) + len(line) + 1
 		if overflow > 0: 
-			self.addstr(str(line[overflow:]))
+			self.addstr(0, len(self.prompt), str(line[overflow:]))
 		else:
-			self.addstr(self.line)
+			self.addstr(0, len(self.prompt), self.line)
 
 	def finalize(self):
 		try:
<boothj5@gmail.com> 2012-11-22 02:34:49 +0000 Added time to themes, and some example themes' href='/danisanti/profani-tty/commit/themes/hacker?id=45a26b111f8bdfe9fb534368eb29bb8963353d8a'>45a26b11 ^
e3b66089 ^
45a26b11 ^


30b5f112 ^
71679a31 ^

45a26b11 ^

e3b66089 ^
45a26b11 ^
e3b66089 ^
2f82f50a ^
86c1c388 ^
1a3dc91e ^
45a26b11 ^
e3b66089 ^
e3b66089 ^
fbc30231 ^

















cd2458c0 ^

b21edfaa ^
1900402f ^
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77