diff options
author | Anmol Sethi <anmol@aubble.com> | 2016-08-24 14:02:25 -0400 |
---|---|---|
committer | Anmol Sethi <anmol@aubble.com> | 2016-08-24 15:41:51 -0400 |
commit | db2aa27df17742a46f2861a53f8b61826e0318ea (patch) | |
tree | b2601e814247e7fee113fbf7aed2522967f3661a | |
parent | 470883d7054b6145f0c233a8ff3d64db8cd887b9 (diff) | |
download | rneovim-db2aa27df17742a46f2861a53f8b61826e0318ea.tar.gz rneovim-db2aa27df17742a46f2861a53f8b61826e0318ea.tar.bz2 rneovim-db2aa27df17742a46f2861a53f8b61826e0318ea.zip |
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.
-rw-r--r-- | runtime/autoload/man.vim | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index 5413037dc3..968a7dc8f4 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -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 |