summaryrefslogtreecommitdiff
path: root/src/windows.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-29 18:54:30 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-11-29 18:54:30 +0000
commita96188385f53b81c07f84ef1de85791a5184bf55 (patch)
treecff8430d201cdd588408b55dbfccc2fb5d0536a6 /src/windows.py
parentcbcec6a798557d4905554c446a5291ac2c1f46ec (diff)
downloadpoezio-a96188385f53b81c07f84ef1de85791a5184bf55.tar.gz
poezio-a96188385f53b81c07f84ef1de85791a5184bf55.tar.bz2
poezio-a96188385f53b81c07f84ef1de85791a5184bf55.tar.xz
poezio-a96188385f53b81c07f84ef1de85791a5184bf55.zip
can now complete with NOTHING in the node
Diffstat (limited to 'src/windows.py')
-rw-r--r--src/windows.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/windows.py b/src/windows.py
index ff303ad8..0fa8505e 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -832,15 +832,12 @@ class Input(Win):
"""
(y, x) = self._win.getyx()
if not self.last_completion:
- # begin is the begining of the nick we want to complete
- # if self.text.strip() != '' and\
- # not self.text.endswith(after):
- if self.text.strip():
+ # begin is the begining of the word we want to complete
+ if self.text.strip() and not self.text.endswith(' '):
begin = self.text.split()[-1].lower()
else:
begin = ''
- # else:
- # begin = ''
+ log.debug('BEGIN: [%s]\n' % begin)
hit_list = [] # list of matching nicks
for word in word_list:
if word.lower().startswith(begin):