diff options
author | Florian Bruhin <git@the-compiler.org> | 2018-05-03 15:23:45 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2018-05-03 15:23:45 +0200 |
commit | acdf0a1c606688b566a1c393ad7ec05566bc4e7f (patch) | |
tree | 535424d6670e9a8fcad61137ffd19753ac76deed | |
parent | 626abd3c83b3a985774d2065673f405ea4f1939d (diff) | |
download | qutebrowser-acdf0a1c606688b566a1c393ad7ec05566bc4e7f.tar.gz qutebrowser-acdf0a1c606688b566a1c393ad7ec05566bc4e7f.zip |
Call _handle_search before leaving the mode
-rw-r--r-- | qutebrowser/mainwindow/statusbar/command.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/mainwindow/statusbar/command.py b/qutebrowser/mainwindow/statusbar/command.py index bb5c60b38..c04dab03e 100644 --- a/qutebrowser/mainwindow/statusbar/command.py +++ b/qutebrowser/mainwindow/statusbar/command.py @@ -186,11 +186,13 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit): """ text = self.text() self.history.append(text) + + was_search = self._handle_search() + if not rapid: modeman.leave(self._win_id, usertypes.KeyMode.command, 'cmd accept') - was_search = self._handle_search() if not was_search: self.got_cmd[str].emit(text[1:]) |