diff options
| author | Stephen Blott | 2015-01-28 14:00:38 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-28 17:30:08 +0000 |
| commit | d6450ed2122c3bf539c9ea837d4423a69f043a68 (patch) | |
| tree | 3961ea0a1302347b9fbab8ed399e668a2e87f74f /content_scripts/vimium_frontend.coffee | |
| parent | 786b8ba0854b71e7bee00248b3ee29da357ba8d0 (diff) | |
| download | vimium-d6450ed2122c3bf539c9ea837d4423a69f043a68.tar.bz2 | |
Visual/edit modes: fix some movements...
Also, change how vim's "w" is implemented.
Also some code-review/cleanup.
Better dd and yy for gmail.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index b8e4149b..b71d1b18 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -868,18 +868,18 @@ getNextQueryFromRegexMatches = (stepSize) -> findModeQuery.regexMatches[findModeQuery.activeRegexIndex] window.getFindModeQuery = -> - if findModeQuery.isRegex - getNextQueryFromRegexMatches(if backwards then -1 else 1) - else - findModeQuery.parsedQuery - -findAndFocus = (backwards) -> # check if the query has been changed by a script in another frame mostRecentQuery = settings.get("findModeRawQuery") || "" if (mostRecentQuery != findModeQuery.rawQuery) findModeQuery.rawQuery = mostRecentQuery updateFindModeQuery() + if findModeQuery.isRegex + getNextQueryFromRegexMatches(if backwards then -1 else 1) + else + findModeQuery.parsedQuery + +findAndFocus = (backwards) -> query = getFindModeQuery() findModeQueryHasResults = |
