mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 21:28:00 +01:00
Fix entering insert mode after revision 78337a3816fd.
This commit is contained in:
@@ -492,6 +492,7 @@ const CommandLine = Module("commandline", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
currentExtendedMode: Modes.boundProperty(),
|
currentExtendedMode: Modes.boundProperty(),
|
||||||
|
_lastClearable: Modes.boundProperty(),
|
||||||
_keepCommand: Modes.boundProperty(),
|
_keepCommand: Modes.boundProperty(),
|
||||||
|
|
||||||
multilineInputVisible: Modes.boundProperty({
|
multilineInputVisible: Modes.boundProperty({
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ const Modes = Module("modes", {
|
|||||||
set: function (mainMode, extendedMode, params, stack) {
|
set: function (mainMode, extendedMode, params, stack) {
|
||||||
params = params || {};
|
params = params || {};
|
||||||
|
|
||||||
if (!stack && mainMode != null)
|
if (!stack && mainMode != null && this._modeStack.length > 1)
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|
||||||
let push = mainMode != null && !(stack && stack.pop) &&
|
let push = mainMode != null && !(stack && stack.pop) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user