summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2008-12-07 09:27:55 -0500
committerKris Maglione <maglione.k@gmail.com>2008-12-07 09:27:55 -0500
commit6068eb9e75462377f5c2fd29d41c51c412bbb61e (patch)
tree2657fe23facd397c485d10e51116949702316512 /common
parente436212ab89ca0eab2e0bb72b1eaebc6a8ee51ff (diff)
downloadpentadactyl-6068eb9e75462377f5c2fd29d41c51c412bbb61e.tar.gz
Force the caret to the end of the line on setCommand()
Diffstat (limited to 'common')
-rw-r--r--common/content/ui.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/common/content/ui.js b/common/content/ui.js
index 4c98c383..fb05e8b9 100644
--- a/common/content/ui.js
+++ b/common/content/ui.js
@@ -526,6 +526,8 @@ function CommandLine() //{{{
function setCommand(cmd)
{
commandWidget.value = cmd;
+ commandWidget.selectionStart = cmd.length;
+ commandWidget.selectionEnd = cmd.length;
}
function echoLine(str, highlightGroup, forceSingle)
@@ -901,10 +903,7 @@ function CommandLine() //{{{
completions = Completions(commandWidget.inputField);
// open the completion list automatically if wanted
- if (/\s/.test(cmd) &&
- options.get("wildoptions").has("auto") &&
- extendedMode == modes.EX)
- autocompleteTimer.tell(false);
+ liberator.triggerCallback("change", currentExtendedMode, cmd);
},
// normally used when pressing esc, does not execute a command
@@ -1380,7 +1379,6 @@ function CommandLine() //{{{
outputContainer.collapsed = false;
},
- // TODO: does that function need to be public?
resetCompletions: function resetCompletions()
{
autocompleteTimer.reset();