restore foldopen=search behaviour for :M #19

This commit is contained in:
SundaraRaman R 2015-09-01 04:27:33 +05:30
parent e5ad9c566c
commit 017aefdf26

View File

@ -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