Blacklist leave-mode, use "not in"
This commit is contained in:
parent
508c0f21fa
commit
ee4b24a5dc
@ -288,8 +288,8 @@ class CommandRunner(QObject):
|
|||||||
|
|
||||||
mode_manager = objreg.get('mode-manager', scope='window',
|
mode_manager = objreg.get('mode-manager', scope='window',
|
||||||
window=self._win_id)
|
window=self._win_id)
|
||||||
if (result.cmdline[0] != 'repeat-command' and
|
if result.cmdline[0] not in ['leave-mode', 'prompt-accept',
|
||||||
result.cmdline[0] != 'prompt-accept'):
|
'repeat-command']:
|
||||||
last_command[mode_manager.mode] = (
|
last_command[mode_manager.mode] = (
|
||||||
self._parse_count(text)[1],
|
self._parse_count(text)[1],
|
||||||
count if count is not None else result.count)
|
count if count is not None else result.count)
|
||||||
|
Loading…
Reference in New Issue
Block a user