mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 04:32:31 +02:00
Fix entering insert mode after revision 78337a3816fd.
This commit is contained in:
1 parent
e61caf8f23
commit
1d5eb0f991
2 files changed
+2
-1
No files matched your search
@@ -492,6 +492,7 @@ const CommandLine = Module("commandline", {
|
||||
},
|
||||
|
||||
currentExtendedMode: Modes.boundProperty(),
|
||||
_lastClearable: Modes.boundProperty(),
|
||||
_keepCommand: Modes.boundProperty(),
|
||||
|
||||
multilineInputVisible: Modes.boundProperty({
|
||||
|
||||
@@ -156,7 +156,7 @@ const Modes = Module("modes", {
|
||||
set: function (mainMode, extendedMode, params, stack) {
|
||||
params = params || {};
|
||||
|
||||
if (!stack && mainMode != null)
|
||||
if (!stack && mainMode != null && this._modeStack.length > 1)
|
||||
this.reset();
|
||||
|
||||
let push = mainMode != null && !(stack && stack.pop) &&
|
||||
|
||||
Reference in new issue
Block a user