diff options
| author | ilya | 2009-12-07 23:47:50 -0800 |
|---|---|---|
| committer | ilya | 2009-12-07 23:47:50 -0800 |
| commit | cc8131d20ee7ff260b2e68dea367dbe7caa5ab93 (patch) | |
| tree | 4803181dea99a69b613aee45c9456b2bafec6ee8 | |
| parent | 9788c4e5cc9664b0cd795ff1d4cdb3b9ab951670 (diff) | |
| download | vimium-cc8131d20ee7ff260b2e68dea367dbe7caa5ab93.tar.bz2 | |
Switch up the scroll restoration logic for in place search to occur before the real search.
| -rw-r--r-- | vimiumFrontend.js | 3 |
1 files changed, 2 insertions, 1 deletions
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() { |
