Fix some completion bugs

This commit is contained in:
Florian Bruhin 2014-04-09 20:57:25 +02:00
parent 72ab405040
commit 7eb27c86ee
2 changed files with 2 additions and 2 deletions

1
TODO
View File

@ -4,7 +4,6 @@ New config TODO
- Changing models is awfully slow
- Add correctly working :get and :set commands
- Implement different layers of config options correctly, not only default.
- When cmd string ends with space, the next model should be shown
Bugs
====

View File

@ -205,7 +205,6 @@ class CompletionView(QTreeView):
"""
# FIXME we should also consider the cursor position
# FIXME when backspacing, models aren't changed correctly
if self._ignore_next:
# Text changed by a completion, so we don't have to complete again.
self._ignore_next = False
@ -221,6 +220,8 @@ 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: