From 7a6ae33fdbdfd6c45018142cfd5958e69b444a58 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 25 Nov 2008 03:32:30 +0000 Subject: [PATCH] Fix minor completion bug --- content/completion.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/completion.js b/content/completion.js index 49f90411..6873cdf8 100644 --- a/content/completion.js +++ b/content/completion.js @@ -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) {}