vim:aucmd: Specify what highlight to clear
There shouldn't be highlights of the other kind (cword <-> visual) around.
This commit is contained in:
@@ -74,7 +74,7 @@ function! HighlightCurrentWord()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call ClearHighlights()
|
call ClearHighlights(s:CLEAR_HIGHS_CWORD)
|
||||||
|
|
||||||
" Delay the highlight by 100ms so that not every word is highlighted
|
" Delay the highlight by 100ms so that not every word is highlighted
|
||||||
" while moving the cursor fast. (This kind of simulates a CursorHold
|
" while moving the cursor fast. (This kind of simulates a CursorHold
|
||||||
@@ -110,7 +110,7 @@ function! HighlightVisualSel()
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call ClearHighlights()
|
call ClearHighlights(s:CLEAR_HIGHS_VISUAL)
|
||||||
|
|
||||||
let l:old_reg = getreg('"')
|
let l:old_reg = getreg('"')
|
||||||
let l:old_regtype = getregtype('"')
|
let l:old_regtype = getregtype('"')
|
||||||
|
|||||||
Reference in New Issue
Block a user