1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 12:42:26 +01:00

Fix minor completion bug

This commit is contained in:
Kris Maglione
2008-11-25 03:32:30 +00:00
parent a0c9d445ba
commit 7a6ae33fdb

View File

@@ -177,6 +177,7 @@ CompletionContext.prototype = {
return [];
if (this.cache.filtered && this.cache.filter == this.filter)
return this.cache.filtered;
this.cache.rows = [];
let items = this.completions;
if (this.regenerate)
items = this.generate();
@@ -1223,7 +1224,7 @@ function Completion() //{{{
return files.map(
function (file) [(tail ? file.leafName : dir + file.leafName).replace(" ", "\\ ", "g"),
file.isDirectory() ? "Directory" : "File",
"moz-icon:" + (file.leafName.match(/\.\w+$/) || "")]
"moz-icon://" + makeFileURI(file).path]
);
}
catch (e) {}