diff options
| author | Stephen Blott | 2015-06-13 12:55:01 +0100 |
|---|---|---|
| committer | Stephen Blott | 2015-06-13 12:55:01 +0100 |
| commit | c21aa9ab03d5537d575d3c46d3affce7f3ece5e5 (patch) | |
| tree | 3853a4ed69886cefdcfa36aaf859d1b6dd8f8f9c /content_scripts/hud.coffee | |
| parent | 26a0653318be7bae4254e2e643dcb5ae5e2498e9 (diff) | |
| download | vimium-c21aa9ab03d5537d575d3c46d3affce7f3ece5e5.tar.bz2 | |
Refactor findInPlace.
This code belongs together, so we put it together.
Diffstat (limited to 'content_scripts/hud.coffee')
| -rw-r--r-- | content_scripts/hud.coffee | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index cd34efe8..2f4e008c 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -33,9 +33,7 @@ HUD = @tween.fade 1.0, 150 search: (data) -> - window.scrollTo @findMode.scrollX, @findMode.scrollY if @findMode.options.returnToViewport - FindMode.updateQuery data.query - @findMode.findInPlace() + @findMode.findInPlace data.query # Show the number of matches in the HUD UI. matchCount = if FindMode.query.parsedQuery.length > 0 then FindMode.query.matchCount else 0 |
