1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 16:44:11 +01:00

Fix ‘not found’ error on search submission

This commit is contained in:
Kris Maglione
2008-10-28 02:12:18 +00:00
parent 2b63cd6a11
commit 8839f286fb

View File

@@ -476,7 +476,7 @@ function Search() //{{{
// Called when the current search needs to be repeated
findAgain: function (reverse)
{
if (!rangeFind || !rangeFind.search(null, reverse))
if (!rangeFind || !(found = rangeFind.search(null, reverse)))
liberator.echoerr("E486: Pattern not found: " + lastSearchPattern);
else if (rangeFind.wrapped)
{
@@ -504,7 +504,7 @@ function Search() //{{{
searchKeyPressed: function (command)
{
if (options["incsearch"])
rangeFind.search(command);
found = rangeFind.search(command);
},
// Called when the enter key is pressed to trigger a search