1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-07 19:23:32 +02: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 try
{ {
path.appendRelativePath(ioManager.expandPath(tail)); // FIXME: should only expand env vars and normalise path separators 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(); path.normalize();
} }
catch(e) catch(e)
{ {
return { exists: function () false }; return { exists: function () false, __noSuchMethod__: function () { throw e } };
} }
return path; return path;
} }
@@ -131,8 +131,7 @@ function IO() //{{{
{ {
try try
{ {
Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile) Cc["@mozilla.org/file/local;1"].createInstance(Ci.nsILocalFile).initWithPath(path);
.initWithPath(path);
return true; return true;
} }
catch (e) catch (e)

View File

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