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:
@@ -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)
|
||||
|
||||
@@ -1416,9 +1416,7 @@ function CommandLine() //{{{
|
||||
{
|
||||
autocompleteTimer.reset();
|
||||
if (completions)
|
||||
completions.context.reset();
|
||||
// Needed?
|
||||
//completions.reset();
|
||||
completions.reset();
|
||||
if (history)
|
||||
history.reset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user