From 017aefdf265a61773092d0c30c3e12760efcad00 Mon Sep 17 00:00:00 2001 From: SundaraRaman R Date: Tue, 1 Sep 2015 04:27:33 +0530 Subject: [PATCH] restore foldopen=search behaviour for :M #19 --- plugin/eregex.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/eregex.vim b/plugin/eregex.vim index 329103a..a3bc717 100644 --- a/plugin/eregex.vim +++ b/plugin/eregex.vim @@ -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