1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 17:57:59 +01:00

the substrings shouldn't be cleared in this particular case

This commit is contained in:
Viktor Kojouharov
2007-05-08 15:04:20 +00:00
parent 2754fdc37a
commit cfa855ad10

View File

@@ -325,7 +325,7 @@ function get_url_completions(filter, complete)/*{{{*/
else if (cpt[i] == 'h')
g_completions = g_completions.concat(get_history_completions(filter));
else if (cpt[i] == 'f')
g_completions = g_completions.concat(get_file_completions(filter));
g_completions = g_completions.concat(get_file_completions(filter, true));
}
return g_completions;
@@ -506,7 +506,9 @@ function get_bookmark_completions(filter)/*{{{*/
function get_file_completions(filter)/*{{{*/
{
g_completions = [];
g_substrings = [];
/* This is now also used as part of the url completion, so the substrings shouldn't be cleared for that case */
if (!arguments[1])
g_substrings = [];
var match = filter.match(/^(.*[\/\\])(.*?)$/);
var dir;