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

Add commandline.status and commandline.error. Feel free to revert this.

This commit is contained in:
Kris Maglione
2008-12-14 19:45:57 -05:00
parent bf895cc118
commit 58bca7d6b3
4 changed files with 35 additions and 19 deletions

View File

@@ -345,7 +345,7 @@ function Search() //{{{
found = fastFind.find(searchString, linksOnly) != Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND;
if (!found)
setTimeout(function () liberator.echoerr("E486: Pattern not found: " + searchPattern, commandline.FORCE_SINGLELINE), 0);
setTimeout(function () commandline.error = "E486: Pattern not found: " + searchPattern, 0);
return found;
},
@@ -364,7 +364,7 @@ function Search() //{{{
if (result == Components.interfaces.nsITypeAheadFind.FIND_NOTFOUND)
{
liberator.echoerr("E486: Pattern not found: " + lastSearchPattern, commandline.FORCE_SINGLELINE);
commandline.error = "E486: Pattern not found: " + lastSearchPattern;
}
else if (result == Components.interfaces.nsITypeAheadFind.FIND_WRAPPED)
{
@@ -381,7 +381,7 @@ function Search() //{{{
}
else
{
commandline.echo((up ? "?" : "/") + lastSearchPattern, null, commandline.FORCE_SINGLELINE);
commandline.status = (up ? "?" : "/") + lastSearchPattern;
if (options["hlsearch"])
this.highlight(lastSearchString);