qxxxb / vim-searchhi

Highlight the current search result differently
GNU General Public License v3.0
47 stars 6 forks source link

Clearing highlighting after moving cursor does not work if matches are on top of each other #14

Closed mroavi closed 3 years ago

mroavi commented 3 years ago

I enabled clearing the highlighting as soon as the cursor moves with:

let g:searchhi_clear_all_asap = 1

as described in the README.

However, I noticed that if matched words are located above/below each other, then the highlight is not cleared.

Here is a GIF that demonstrates this:

Peek 2021-08-04 16-42_searchhi_bug

qxxxb commented 3 years ago

Thanks for the report, should be fixed now!

mroavi commented 3 years ago

The fix introduced another problem: using * on a word that is already in the search register does not highlight any match:

Peek 2021-08-04 16-42_searchhi_bug2

mroavi commented 3 years ago

Ohh, wait, your latest commit fe812e8 which closes #15 also fixed the issue above.