From cc8131d20ee7ff260b2e68dea367dbe7caa5ab93 Mon Sep 17 00:00:00 2001 From: ilya Date: Mon, 7 Dec 2009 23:47:50 -0800 Subject: Switch up the scroll restoration logic for in place search to occur before the real search. --- vimiumFrontend.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vimiumFrontend.js b/vimiumFrontend.js index 5cbe0625..69236eda 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -270,11 +270,12 @@ function performFindInPlace() { // Search backwards first to "free up" the current word as eligible for the real forward search. This allows // us to search in place without jumping around between matches as the query grows. window.find(findModeQuery, false, true, true, false, true, false); - performFind(); // We need to restore the scroll position because we might've lost the right position by searching // backwards. window.scrollTo(cachedScrollX, cachedScrollY); + + performFind(); } function performFind() { -- cgit v1.2.3