Skip to content

Commit

Permalink
Use \M instead of \v to handle magic option
Browse files Browse the repository at this point in the history
  • Loading branch information
haya14busa committed Aug 9, 2014
1 parent d5d5dfb commit 32e79a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/incsearch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ function! s:inc.on_char(cmdline)
let m = hgm.match
let o = hgm.on_cursor
let c = hgm.cursor
let on_cursor_pattern = '\v%#(\M' . pattern . '\v)'
let on_cursor_pattern = '\M\%#(' . pattern . '\M\)'
call s:hi.add(m.group , m.group , pattern , m.priority)
call s:hi.add(o.group , o.group , on_cursor_pattern , o.priority)
call s:hi.add(c.group , c.group , '\v%#' , c.priority)
Expand Down

0 comments on commit 32e79a9

Please sign in to comment.