Save key mode to leave
Doing self._prompt.question.done() already sets self._prompt to the next prompt or to None.
This commit is contained in:
parent
67cb3cd23e
commit
bc4e340323
@ -215,9 +215,9 @@ class PromptContainer(QWidget):
|
|||||||
except Error as e:
|
except Error as e:
|
||||||
raise cmdexc.CommandError(str(e))
|
raise cmdexc.CommandError(str(e))
|
||||||
if done:
|
if done:
|
||||||
|
key_mode = self._prompt.KEY_MODE
|
||||||
self._prompt.question.done()
|
self._prompt.question.done()
|
||||||
modeman.maybe_leave(self._win_id, self._prompt.KEY_MODE,
|
modeman.maybe_leave(self._win_id, key_mode, ':prompt-accept')
|
||||||
':prompt-accept')
|
|
||||||
|
|
||||||
@cmdutils.register(instance='prompt-container', hide=True, scope='window',
|
@cmdutils.register(instance='prompt-container', hide=True, scope='window',
|
||||||
modes=[usertypes.KeyMode.yesno],
|
modes=[usertypes.KeyMode.yesno],
|
||||||
|
Loading…
Reference in New Issue
Block a user