Fix completing when text ends with space #2
This commit is contained in:
parent
d485d8cc4e
commit
18bcae40c5
@ -240,4 +240,6 @@ def split_cmdline(text):
|
||||
parts = parser.parse(text)
|
||||
except NoSuchCommandError:
|
||||
parts = text.split(' ')
|
||||
if text.endswith(' '):
|
||||
parts.append('')
|
||||
return parts
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user