1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 08:27:59 +01:00

Fix some command-opening key bindings.

This commit is contained in:
Kris Maglione
2011-01-29 16:57:34 -05:00
parent 9408d105ee
commit 313d2b223c
4 changed files with 17 additions and 7 deletions

View File

@@ -322,6 +322,9 @@ var CommandMode = Class("CommandMode", {
this.widgets.active.commandline.collapsed = false;
this.widgets.prompt = this.prompt;
this.widgets.command = command || "";
if (this.completions && options["autocomplete"].length)
this.completions.complete(true, false);
},
get mappingSelf() this,
@@ -332,7 +335,7 @@ var CommandMode = Class("CommandMode", {
commandline.commandSession = this;
if (this.command || stack.pop && commandline.command) {
this.onChange(commandline.command);
if (this.completions && options["autocomplete"].length)
if (this.completions && stack.pop)
this.completions.complete(true, false);
}
},