fix set hlsearch with g:EasyMotion_add_search_history == 0
https://github.com/easymotion/vim-easymotion/issues/139#issuecomment-128277980
This commit is contained in:
parent
eab003a099
commit
64da988487
@ -1500,7 +1500,7 @@ function! s:EasyMotion(regexp, direction, visualmode, is_inclusive, ...) " {{{
|
|||||||
endif "}}}
|
endif "}}}
|
||||||
|
|
||||||
" Highlight all the matches by n-key find motions {{{
|
" Highlight all the matches by n-key find motions {{{
|
||||||
if s:current.is_search == 1 && s:current.is_operator == 0
|
if s:current.is_search == 1 && s:current.is_operator == 0 && g:EasyMotion_add_search_history
|
||||||
" It seems let &hlsearch=&hlsearch doesn't work when called
|
" It seems let &hlsearch=&hlsearch doesn't work when called
|
||||||
" in script, so use :h feedkeys() instead.
|
" in script, so use :h feedkeys() instead.
|
||||||
" Ref: :h v:hlsearch
|
" Ref: :h v:hlsearch
|
||||||
|
Loading…
Reference in New Issue
Block a user