restore foldopen=search behaviour for :M #19
This commit is contained in:
parent
e5ad9c566c
commit
017aefdf26
@ -776,6 +776,9 @@ function! s:Ematch(...)
|
|||||||
endif
|
endif
|
||||||
if v:errmsg ==# ''
|
if v:errmsg ==# ''
|
||||||
redraw!
|
redraw!
|
||||||
|
if &foldenable && &foldopen =~# 'search'
|
||||||
|
exec 'normal!zv'
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
echohl WarningMsg | echo v:errmsg
|
echohl WarningMsg | echo v:errmsg
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user