diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-30 02:50:24 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-30 02:50:24 +0000 |
commit | 95c7ad4ac82762e3e017cd8ef85d267add803126 (patch) | |
tree | e98d55b51030718874810c5e70f08b5dbfc2559d /src/window.py | |
parent | 33cf82e0947be35bf4e4666d0db632b60e5c27f9 (diff) | |
download | poezio-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.py | 4 |
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 |