option to close commandline by deleting the prefix

This commit is contained in:
Argn0 2018-01-10 20:02:39 +01:00
parent 5003432a55
commit be5b8e2632

View File

@ -267,7 +267,6 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit):
@pyqtSlot(str)
def _exit_prefix(self, text):
if config.val.completion.exit_prefix and
(not text or text[0] not in self.prefixes):
if config.val.completion.exit_prefix and (not text or text[0] not in self.prefixes):
modeman.leave(self._win_id, usertypes.KeyMode.command,
'prefix deleted', maybe=True)