summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-01-12 21:27:43 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-01-12 21:27:43 +0100
commit7b5407b7b7059159691d85d58aa11fea8c2f5469 (patch)
tree2954e582469d5b07d802242e0a1a779769f94e2e
parentb10fd0d22942daa121de78a1d72033398995a2c6 (diff)
downloadpoezio-7b5407b7b7059159691d85d58aa11fea8c2f5469.tar.gz
poezio-7b5407b7b7059159691d85d58aa11fea8c2f5469.tar.bz2
poezio-7b5407b7b7059159691d85d58aa11fea8c2f5469.tar.xz
poezio-7b5407b7b7059159691d85d58aa11fea8c2f5469.zip
Correctly refresh the screen on ^G on roster commands
-rw-r--r--src/tabs.py1
-rw-r--r--src/windows.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 2d071973..2149e36c 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -918,6 +918,7 @@ class RosterInfoTab(Tab):
def reset_help_message(self, _=None):
curses.curs_set(0)
self.input = self.default_help_message
+ self.core.refresh_window()
return True
def execute_slash_command(self, txt):
diff --git a/src/windows.py b/src/windows.py
index ef4c1264..e425913b 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1081,6 +1081,7 @@ class CommandInput(Input):
self.key_func['^M'] = self.success
self.key_func['\n'] = self.success
self.key_func['^G'] = self.abort
+ self.key_func['^C'] = self.abort
def do_command(self, key):
res = Input.do_command(self, key)