From 379c6a2d719042073f72e9499f9f4715b291bcd9 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sun, 19 Jul 2009 21:16:34 +0100 Subject: [PATCH] Fix tab-completion with blank url separator --- common/content/completion.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/content/completion.js b/common/content/completion.js index 0726032f..473bce94 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -1354,7 +1354,11 @@ function Completion() //{{{ { let numLocationCompletions = 0; // how many async completions did we already return to the caller? let start = 0; - let skip = context.filter.match("^.*" + options["urlseparator"]); // start after the last 'urlseparator' + let skip = 0; + + if (options["urlseparator"]) + skip = context.filter.match("^.*" + options["urlseparator"]); // start after the last 'urlseparator' + if (skip) context.advance(skip[0].length);