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