patch 8.1.1768: man plugin changes setting in current window

Problem:    Man plugin changes setting in current window.
Solution:   Set options later. (Jason Franklin)
This commit is contained in:
Bram Moolenaar
2019-07-28 15:28:45 +02:00
parent f96ae0b5a2
commit bca9c30193
3 changed files with 34 additions and 8 deletions

View File

@ -174,7 +174,6 @@ func <SID>GetPage(cmdmods, ...)
else
let open_cmd = a:cmdmods . ' split'
endif
setl nonu fdc=0
endif
endif
@ -183,7 +182,7 @@ func <SID>GetPage(cmdmods, ...)
" Avoid warning for editing the dummy file twice
setl buftype=nofile noswapfile
setl ma nonu nornu nofen
setl fdc=0 ma nofen nonu nornu
silent exec "norm! 1GdG"
let unsetwidth = 0
if empty($MANWIDTH)