Call _handle_search before leaving the mode

This commit is contained in:
Florian Bruhin 2018-05-03 15:23:45 +02:00
parent 626abd3c83
commit acdf0a1c60

View File

@ -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:])