From acdf0a1c606688b566a1c393ad7ec05566bc4e7f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 3 May 2018 15:23:45 +0200 Subject: [PATCH] Call _handle_search before leaving the mode --- qutebrowser/mainwindow/statusbar/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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:])