aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_find.coffee
diff options
context:
space:
mode:
authormrmr19932015-06-10 16:22:57 +0100
committermrmr19932015-06-10 20:59:17 +0100
commit25402831343e647a7d9ab96f390d48b07cb44488 (patch)
tree89346b4037818fcaf987d0c996b7c2654874f1fc /content_scripts/mode_find.coffee
parent409fce2a3663f7e100705dc9d0617514eed48a99 (diff)
downloadvimium-25402831343e647a7d9ab96f390d48b07cb44488.tar.bz2
Add FindMode.saveQuery to avoid addressing findModeQuery directly
Diffstat (limited to 'content_scripts/mode_find.coffee')
-rw-r--r--content_scripts/mode_find.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/content_scripts/mode_find.coffee b/content_scripts/mode_find.coffee
index 4d7f3972..ad3d3408 100644
--- a/content_scripts/mode_find.coffee
+++ b/content_scripts/mode_find.coffee
@@ -154,6 +154,8 @@ class FindMode extends Mode
else
findModeQuery.parsedQuery
+ @saveQuery: -> FindModeHistory.saveQuery findModeQuery.rawQuery
+
getCurrentRange = ->
selection = getSelection()
if selection.type == "None"