summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-30 02:50:24 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-30 02:50:24 +0000
commit95c7ad4ac82762e3e017cd8ef85d267add803126 (patch)
treee98d55b51030718874810c5e70f08b5dbfc2559d /src/window.py
parent33cf82e0947be35bf4e4666d0db632b60e5c27f9 (diff)
downloadpoezio-95c7ad4ac82762e3e017cd8ef85d267add803126.tar.gz
poezio-95c7ad4ac82762e3e017cd8ef85d267add803126.tar.bz2
poezio-95c7ad4ac82762e3e017cd8ef85d267add803126.tar.xz
poezio-95c7ad4ac82762e3e017cd8ef85d267add803126.zip
on peut choisir son nick lors d'un /join machin@truc/NICK
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