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
if v:errmsg ==# ''
redraw!
if &foldenable && &foldopen =~# 'search'
exec 'normal!zv'
endif
else
echohl WarningMsg | echo v:errmsg
endif