1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 13:37:58 +01:00

Fix tab-completion with blank url separator

This commit is contained in:
Conrad Irwin
2009-07-19 21:16:34 +01:00
parent 96e934e080
commit 379c6a2d71

View File

@@ -1354,7 +1354,11 @@ function Completion() //{{{
{ {
let numLocationCompletions = 0; // how many async completions did we already return to the caller? let numLocationCompletions = 0; // how many async completions did we already return to the caller?
let start = 0; 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) if (skip)
context.advance(skip[0].length); context.advance(skip[0].length);