From df6c1fd26d48e8aa4c8b4686dfe8bc0f1e5a4360 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 21 Mar 2014 20:02:17 +0100 Subject: [PATCH] Remove ignore_next --- qutebrowser/widgets/completion.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/qutebrowser/widgets/completion.py b/qutebrowser/widgets/completion.py index 68d659397..5d10d5435 100644 --- a/qutebrowser/widgets/completion.py +++ b/qutebrowser/widgets/completion.py @@ -53,7 +53,6 @@ class CompletionView(QTreeView): model: The currently active filter model. _STYLESHEET: The stylesheet template for the CompletionView. _completion_models: dict of available completion models. - _ignore_next: Whether to ignore the next cmd_text_changed signal. _enabled: Whether showing the CompletionView is enabled. _completing: Whether we're currently completing something. _height: The height to use for the CompletionView. @@ -105,7 +104,6 @@ class CompletionView(QTreeView): 'command': CompletionFilterModel(CommandCompletionModel(self)), 'setting': CompletionFilterModel(SettingCompletionModel(self)), } - self._ignore_next = False self._completing = False self._delegate = _CompletionItemDelegate(self) @@ -178,11 +176,6 @@ class CompletionView(QTreeView): """ # FIXME we should also consider the cursor position - if self._ignore_next: - # Text changed by a completion, so we don't have to complete again. - self._ignore_next = False - return - if not text.startswith(':'): # This is a search or gibberish, so we don't need to complete # anything (yet) @@ -247,7 +240,6 @@ class CompletionView(QTreeView): idx, QItemSelectionModel.ClearAndSelect) data = self.model.data(idx) if data is not None: - self._ignore_next = True self.append_cmd_text.emit(self.model.data(idx) + ' ')