From 8839f286fba069ae1284e11bdf907df4f0885987 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 28 Oct 2008 02:12:18 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20=E2=80=98not=20found=E2=80=99=20error=20o?= =?UTF-8?q?n=20search=20submission?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/find.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/find.js b/content/find.js index 94746b96..03edecae 100644 --- a/content/find.js +++ b/content/find.js @@ -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