Skip to content

Commit 2518474

Browse files
committed
Fix #444: Honor hlsearch on n/N
1 parent f1d5ee0 commit 2518474

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

common/content/finder.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ var Finder = Module("finder", {
181181
this.findbar._vimp_keepClosed = true;
182182

183183
this.findbar.onFindAgainCommand(reverse);
184+
185+
if (options.hlsearch) {
186+
this.highlight();
187+
}
184188
},
185189

186190
/**
@@ -260,6 +264,11 @@ var Finder = Module("finder", {
260264
let findbar = this.findbar;
261265

262266
let btn = findbar.getElement("highlight");
267+
268+
if (btn.checked) {
269+
return;
270+
}
271+
263272
btn.checked = true;
264273

265274
findbar._setHighlightTimeout();

0 commit comments

Comments
 (0)