1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:08:00 +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 []; return [];
if (this.cache.filtered && this.cache.filter == this.filter) if (this.cache.filtered && this.cache.filter == this.filter)
return this.cache.filtered; return this.cache.filtered;
this.cache.rows = [];
let items = this.completions; let items = this.completions;
if (this.regenerate) if (this.regenerate)
items = this.generate(); items = this.generate();
@@ -1223,7 +1224,7 @@ function Completion() //{{{
return files.map( return files.map(
function (file) [(tail ? file.leafName : dir + file.leafName).replace(" ", "\\ ", "g"), function (file) [(tail ? file.leafName : dir + file.leafName).replace(" ", "\\ ", "g"),
file.isDirectory() ? "Directory" : "File", file.isDirectory() ? "Directory" : "File",
"moz-icon:" + (file.leafName.match(/\.\w+$/) || "")] "moz-icon://" + makeFileURI(file).path]
); );
} }
catch (e) {} catch (e) {}