junegunn/vim-oblique

incrementeal highlights incorrectly when using \C pattern

arecarn opened this issue · 3 comments

Given the following situation:

  • g:oblique#incsearch_highlight_all is set
  • smartcase is set
  • ignorecase is set

and the search pattern \Ctest is typed using the following buffer

test
Test

Both "test" and "Test" will be highlighted as incremental searches ignoring the \C pattern to force case matching. This seems to only happen when the \C pattern is the first thing in the search pattern otherwise it seems to work.

Thanks for the report. Could you update and test it? I fixed a few more issues regarding incsearch highlighting. (Though I haven't managed to add corresponding regression test cases yet)

Thanks! I'll take a look at it soon.

The fix seems to be working well.

Thanks