mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-08 11:05:48 +01:00
Fix ‘not found’ error on search submission
This commit is contained in:
@@ -476,7 +476,7 @@ function Search() //{{{
|
|||||||
// Called when the current search needs to be repeated
|
// Called when the current search needs to be repeated
|
||||||
findAgain: function (reverse)
|
findAgain: function (reverse)
|
||||||
{
|
{
|
||||||
if (!rangeFind || !rangeFind.search(null, reverse))
|
if (!rangeFind || !(found = rangeFind.search(null, reverse)))
|
||||||
liberator.echoerr("E486: Pattern not found: " + lastSearchPattern);
|
liberator.echoerr("E486: Pattern not found: " + lastSearchPattern);
|
||||||
else if (rangeFind.wrapped)
|
else if (rangeFind.wrapped)
|
||||||
{
|
{
|
||||||
@@ -504,7 +504,7 @@ function Search() //{{{
|
|||||||
searchKeyPressed: function (command)
|
searchKeyPressed: function (command)
|
||||||
{
|
{
|
||||||
if (options["incsearch"])
|
if (options["incsearch"])
|
||||||
rangeFind.search(command);
|
found = rangeFind.search(command);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Called when the enter key is pressed to trigger a search
|
// Called when the enter key is pressed to trigger a search
|
||||||
|
|||||||
Reference in New Issue
Block a user