1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-08 21:25:46 +01:00

Fix non-auto completions. Possibly break something else.

This commit is contained in:
Kris Maglione
2008-12-17 20:06:27 -05:00
parent ec26e68027
commit 7733f45969
2 changed files with 4 additions and 7 deletions

View File

@@ -117,12 +117,12 @@ function IO() //{{{
try
{
path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators
if (path.exists())
if (path.exists() && path.normalize)
path.normalize();
}
catch(e)
{
return { exists: function () false };
return { exists: function () false, __noSuchMethod__: function () { throw e } };
}
return path;
}
@@ -131,8 +131,7 @@ function IO() //{{{
{
try
{
Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile)
.initWithPath(path);
Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile).initWithPath(path);
return true;
}
catch (e)

View File

@@ -1416,9 +1416,7 @@ function CommandLine() //{{{
{
autocompleteTimer.reset();
if (completions)
completions.context.reset();
// Needed?
//completions.reset();
completions.reset();
if (history)
history.reset();
}