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:
@@ -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)
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user