Fix completing when text ends with space #2

This commit is contained in:
Florian Bruhin 2014-04-09 21:15:18 +02:00
parent d485d8cc4e
commit 18bcae40c5
2 changed files with 2 additions and 2 deletions

View File

@ -240,4 +240,6 @@ def split_cmdline(text):
parts = parser.parse(text)
except NoSuchCommandError:
parts = text.split(' ')
if text.endswith(' '):
parts.append('')
return parts

View File

@ -220,8 +220,6 @@ class CompletionView(QTreeView):
text = text.lstrip(':')
parts = split_cmdline(text)
if text.endswith(' '):
parts.append('')
model = self._get_new_completion(parts)
if model != self._lastmodel: