From 097309f28caa62d6c0bafa673146ccc6c88f82f5 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 15 Dec 2010 04:16:17 -0500 Subject: [PATCH] Fix minor issues in last commit. --- common/content/io.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/content/io.js b/common/content/io.js index a40a2bd9..09b19659 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -772,7 +772,7 @@ lookup: if (!match[4]) { context.key = match[2]; context.advance(match[2].length); - context.generate = function () util.chromePackages.map(function (p) [p, match[1] + p + "/"]); + context.generate = function () util.chromePackages.map(function (p) [p, match[2] + p + "/"]); } else if (match[3] === "chrome") { context.key = match[1]; @@ -784,8 +784,9 @@ lookup: }); } } - else if (/^(\.{0,2}|~)\/|^file:/.test(context.filter) || util.getFile(context.filter) || io.isJarURL(context.filter)) - completion.file(context, full); + if (!match || match[3] === "resource" && match[4]) + if (/^(\.{0,2}|~)\/|^file:/.test(context.filter) || util.getFile(context.filter) || io.isJarURL(context.filter)) + completion.file(context, full); }); }, javascript: function () {