summaryrefslogtreecommitdiff
path: root/common/content/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/ui.js')
-rw-r--r--common/content/ui.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/content/ui.js b/common/content/ui.js
index 502da223..ff01d439 100644
--- a/common/content/ui.js
+++ b/common/content/ui.js
@@ -232,9 +232,9 @@ function CommandLine() //{{{
this.wildtypes = this.wildmode.values;
this.wildIndex = -1;
- this.prefix = this.context.value.substr(0, this.start);
- this.value = this.context.value.substr(this.start, this.context.caret);
- this.suffix = this.context.value.substr(this.context.caret);
+ this.prefix = this.context.value.substring(0, this.start);
+ this.value = this.context.value.substring(this.start, this.caret);
+ this.suffix = this.context.value.substring(this.caret);
if (show)
{
@@ -1372,7 +1372,7 @@ function CommandLine() //{{{
if (completions)
{
completions.context.reset();
- completions.reset();
+ //completions.reset();
}
historyIndex = UNINITIALIZED;
removeSuffix = "";