man.vim: if reusing a buffer, do not use noautocmd

The commit that added support for modifiers regressed #5168
causing #5172. This commit fixes it again.
This commit is contained in:
Anmol Sethi 2016-08-24 14:02:25 -04:00
parent 470883d705
commit db2aa27df1
No known key found for this signature in database
GPG Key ID: 427400A70839B0ED

View File

@ -61,14 +61,13 @@ function! man#open_page(count, count1, mods, ...) abort
return
endif
noautocmd execute 'edit' bufname
call s:read_page(path)
return
endif
noautocmd execute a:mods 'split' bufname
if s:manwidth() ==# get(b:, 'manwidth')
elseif s:manwidth() ==# getbufvar(bufname, 'manwidth')
execute a:mods 'split' bufname
call man#set_window_local_options()
keepjumps 1
return
else
noautocmd execute a:mods 'split' bufname
endif
call s:read_page(path)
endfunction