Skip to content

Commit

Permalink
Merge pull request #2124 from gdh1995/bug-fix-in-find-mode
Browse files Browse the repository at this point in the history
install the real selectionchange listener after window.find
  • Loading branch information
smblott-github committed May 6, 2016
2 parents b6c5357 + f387d2e commit 3959369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content_scripts/mode_find.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class FindMode extends Mode

if options.colorSelection
setTimeout(
-> document.addEventListener("selectionchange", @restoreDefaultSelectionHighlight, true)
=> document.addEventListener("selectionchange", @restoreDefaultSelectionHighlight, true)
, 0)

# We are either in normal mode ("n"), or find mode ("/"). We are not in insert mode. Nevertheless, if a
Expand Down

0 comments on commit 3959369

Please sign in to comment.