1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 20:07: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') else if (cpt[i] == 'h')
g_completions = g_completions.concat(get_history_completions(filter)); g_completions = g_completions.concat(get_history_completions(filter));
else if (cpt[i] == 'f') 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; return g_completions;
@@ -506,6 +506,8 @@ function get_bookmark_completions(filter)/*{{{*/
function get_file_completions(filter)/*{{{*/ function get_file_completions(filter)/*{{{*/
{ {
g_completions = []; g_completions = [];
/* 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 = []; g_substrings = [];
var match = filter.match(/^(.*[\/\\])(.*?)$/); var match = filter.match(/^(.*[\/\\])(.*?)$/);
var dir; var dir;