summaryrefslogtreecommitdiff
path: root/common/content/commandline.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-29 16:57:34 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-29 16:57:34 -0500
commit313d2b223c64b2cef6bc28faafad1b7ac50fea00 (patch)
tree5d00e82a373139591d6277144d53dfdf29db92ea /common/content/commandline.js
parent9408d105eed9560b9f8e9f59a6512ba798f745eb (diff)
downloadpentadactyl-313d2b223c64b2cef6bc28faafad1b7ac50fea00.tar.gz
Fix some command-opening key bindings.
Diffstat (limited to 'common/content/commandline.js')
-rw-r--r--common/content/commandline.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/content/commandline.js b/common/content/commandline.js
index 0840420e..ba7616d7 100644
--- a/common/content/commandline.js
+++ b/common/content/commandline.js
@@ -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);
}
},