restore foldopen=search behaviour for :M #19
This commit is contained in:
parent
e5ad9c566c
commit
017aefdf26
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user