summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-17 03:24:11 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-17 03:24:11 +0000
commitcceae04061694ce8ff1d5249871c80248f994a6e (patch)
tree57db8c3a5170c68ada4a88593a5c4721a0d19f4f /src
parent68573a6598e61e55c0e3217e095d34b6f87f5932 (diff)
downloadpoezio-cceae04061694ce8ff1d5249871c80248f994a6e.tar.gz
poezio-cceae04061694ce8ff1d5249871c80248f994a6e.tar.bz2
poezio-cceae04061694ce8ff1d5249871c80248f994a6e.tar.xz
poezio-cceae04061694ce8ff1d5249871c80248f994a6e.zip
, after completion only at the begining
Diffstat (limited to 'src')
-rw-r--r--src/window.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/window.py b/src/window.py
index e2fcd634..301cc68c 100644
--- a/src/window.py
+++ b/src/window.py
@@ -365,7 +365,7 @@ class Input(Win):
self.last_key_tab = False
def normal_completion(self, user_list):
- if " " in self.text:
+ if " " in self.text.strip():
after = " " # don't put the "," if it's not the begining of the sentence
else:
after = config.get('after_completion', ',')+" "
@@ -398,11 +398,10 @@ class Input(Win):
self.refresh()
def shell_completion(self, user_list):
- if " " in self.text:
+ if " " in self.text.strip():
after = " " # don't put the "," if it's not the begining of the sentence
else:
after = config.get('after_completion', ',')+" "
- after = config.get('after_completion', ',')+" "
(y, x) = self.win.getyx()
begin = self.text.split()[-1].encode('utf-8').lower()
hit_list = [] # list of matching nicks