From 7eb27c86eec6df0cb8d1cd358b7a6100db812798 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 9 Apr 2014 20:57:25 +0200 Subject: [PATCH] Fix some completion bugs --- TODO | 1 - qutebrowser/widgets/completion.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index e62e418dd..18c929aa0 100644 --- a/TODO +++ b/TODO @@ -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 ==== diff --git a/qutebrowser/widgets/completion.py b/qutebrowser/widgets/completion.py index 4f2596566..f9f349f1b 100644 --- a/qutebrowser/widgets/completion.py +++ b/qutebrowser/widgets/completion.py @@ -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: