Skip to content

Commit 21c6870

Browse files
committed
highlight current word
1 parent a55bd48 commit 21c6870

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/easycomplete/ui.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ function! easycomplete#ui#HighlightWordUnderCursor() " {{{
137137
3match none
138138
return
139139
endif
140-
if getline(".")[col(".")-1] !~# '[[:punct:][:blank:]]'
140+
let curr_char = getline(".")[col(".")-1]
141+
if curr_char !~# '[[:punct:][:blank:]]' || curr_char == "_"
141142
if empty(s:easycomplete_search_bg_color)
142143
let bgcolor = easycomplete#ui#GetBgColor("Search")
143144
else

0 commit comments

Comments
 (0)