Skip to content

Commit e84b282

Browse files
Dimitrios Semitsoglou-Tsiaposgkatsev
authored andcommitted
fix search highlighting on fx51 (#737)
Closes #676
1 parent b5511d7 commit e84b282

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

common/content/finder.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,10 @@ var Finder = Module("finder", {
271271

272272
btn.checked = true;
273273

274-
findbar._setHighlightTimeout();
274+
if ("toggleHighlight" in findbar) /* Firefox >= v51 */
275+
findbar.toggleHighlight(true);
276+
else
277+
findbar._setHighlightTimeout();
275278
},
276279

277280
/**

vimperator/NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
201x-xx-xx:
22
* create README.md
3+
* fix search highlighting (hlsearch) in firefox 51
34

45

56
2017-02-01:

0 commit comments

Comments
 (0)