1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 23:57:59 +01:00

Fix entering insert mode after revision 78337a3816fd.

This commit is contained in:
Kris Maglione
2010-10-04 15:47:01 -04:00
parent e61caf8f23
commit 1d5eb0f991
2 changed files with 2 additions and 1 deletions

View File

@@ -492,6 +492,7 @@ const CommandLine = Module("commandline", {
},
currentExtendedMode: Modes.boundProperty(),
_lastClearable: Modes.boundProperty(),
_keepCommand: Modes.boundProperty(),
multilineInputVisible: Modes.boundProperty({

View File

@@ -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) &&