man.vim: always keep the alternate buffer (#7784)

Closes #7772
This commit is contained in:
Anmol Sethi 2017-12-29 13:00:10 -05:00 committed by Justin M. Keyes
parent 5563e808da
commit 3eaa9a2579

View File

@ -65,9 +65,9 @@ function! man#open_page(count, count1, mods, ...) abort
try try
set eventignore+=BufReadCmd set eventignore+=BufReadCmd
if a:mods !~# 'tab' && s:find_man() if a:mods !~# 'tab' && s:find_man()
execute 'silent edit' fnameescape(bufname) execute 'silent keepalt edit' fnameescape(bufname)
else else
execute 'silent' a:mods 'split' fnameescape(bufname) execute 'silent keepalt' a:mods 'split' fnameescape(bufname)
endif endif
finally finally
set eventignore-=BufReadCmd set eventignore-=BufReadCmd