mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
470883d705
commit
db2aa27df1
@ -61,14 +61,13 @@ function! man#open_page(count, count1, mods, ...) abort
|
|||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
noautocmd execute 'edit' bufname
|
noautocmd execute 'edit' bufname
|
||||||
call s:read_page(path)
|
elseif s:manwidth() ==# getbufvar(bufname, 'manwidth')
|
||||||
return
|
execute a:mods 'split' bufname
|
||||||
endif
|
|
||||||
noautocmd execute a:mods 'split' bufname
|
|
||||||
if s:manwidth() ==# get(b:, 'manwidth')
|
|
||||||
call man#set_window_local_options()
|
call man#set_window_local_options()
|
||||||
keepjumps 1
|
keepjumps 1
|
||||||
return
|
return
|
||||||
|
else
|
||||||
|
noautocmd execute a:mods 'split' bufname
|
||||||
endif
|
endif
|
||||||
call s:read_page(path)
|
call s:read_page(path)
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user