1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 06:24:12 +01:00

Fix beep when starting REPL mode.

This commit is contained in:
Kris Maglione
2011-04-04 20:39:44 -04:00
parent d960ede32e
commit 2dd8c88898
2 changed files with 7 additions and 4 deletions

View File

@@ -446,19 +446,22 @@ var Modes = Module("modes", {
while (this._modeStack.length > 1 && this.main != mode) {
let a = this._modeStack.pop();
this.set(this.topOfStack.main, this.topOfStack.extended, this.topOfStack.params,
update({ pop: a }, args || {}));
update({ pop: a },
args || {}));
if (mode == null)
return;
}
},
replace: function replace(mode, oldMode) {
replace: function replace(mode, oldMode, args) {
while (oldMode && this._modeStack.length > 1 && this.main != oldMode)
this.pop();
if (this._modeStack.length > 1)
this.set(mode, null, null, { push: this.topOfStack, pop: this._modeStack.pop() });
this.set(mode, null, null,
update({ push: this.topOfStack, pop: this._modeStack.pop() },
args || {}));
this.push(mode);
},