summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.py b/src/window.py
index b7965335..5f3d2a74 100644
--- a/src/window.py
+++ b/src/window.py
@@ -185,6 +185,8 @@ class Input(Win):
self.refresh()
def key_up(self):
+ if not len(self.history):
+ return
self.win.clear()
if self.histo_pos >= 0:
self.histo_pos -= 1
@@ -194,6 +196,8 @@ class Input(Win):
self.refresh()
def key_down(self):
+ if not len(self.history):
+ return
self.win.clear()
if self.histo_pos < len(self.history)-1:
self.histo_pos += 1