aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authormrmr19932015-06-10 15:52:07 +0100
committermrmr19932015-06-10 20:59:17 +0100
commit036a85c275fe7404e47b8c1657232fba971a803e (patch)
tree568df537e3d3d1c9d782422c38ba3cfbe28e06b9 /content_scripts/vimium_frontend.coffee
parentdbf7d4eb053cc99f2c29b56ea61a671ec46fac62 (diff)
downloadvimium-036a85c275fe7404e47b8c1657232fba971a803e.tar.bz2
Move getNextQueryFromFindModeMatches and getFindModeQuery into mode_find
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee22
1 files changed, 0 insertions, 22 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 13e07e7a..80da43bb 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -677,28 +677,6 @@ selectFoundInputElement = ->
DomUtils.isDOMDescendant(findModeAnchorNode, document.activeElement))
DomUtils.simulateSelect(document.activeElement)
-window.getNextQueryFromRegexMatches = (stepSize) ->
- # find()ing an empty query always returns false
- return "" unless findModeQuery.regexMatches
-
- totalMatches = findModeQuery.regexMatches.length
- findModeQuery.activeRegexIndex += stepSize + totalMatches
- findModeQuery.activeRegexIndex %= totalMatches
-
- findModeQuery.regexMatches[findModeQuery.activeRegexIndex]
-
-window.getFindModeQuery = (backwards) ->
- # check if the query has been changed by a script in another frame
- mostRecentQuery = FindModeHistory.getQuery()
- if (mostRecentQuery != findModeQuery.rawQuery)
- findModeQuery.rawQuery = mostRecentQuery
- FindMode.updateQuery()
-
- if findModeQuery.isRegex
- getNextQueryFromRegexMatches(if backwards then -1 else 1)
- else
- findModeQuery.parsedQuery
-
findAndFocus = (backwards) ->
Marks.setPreviousPosition()
query = getFindModeQuery backwards