forked from aniani/vim
runtime(man): Man plugin does not respect 'gdefault'
Fix the issue introduced by #12557. `:substitute` commands in plugins need to take into account whether `gdefault` is set or not because that depends on the user. closes: #13097 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
e2deb7e598
commit
249a208803
2
runtime/autoload/dist/man.vim
vendored
2
runtime/autoload/dist/man.vim
vendored
@ -196,7 +196,7 @@ func dist#man#GetPage(cmdmods, ...)
|
||||
|
||||
" Emulate piping the buffer through the "col -b" command.
|
||||
" Ref: https://github.com/vim/vim/issues/12301
|
||||
silent! keepjumps keeppatterns %s/\v(.)\b\ze\1?//ge
|
||||
exe 'silent! keepjumps keeppatterns %s/\v(.)\b\ze\1?//e' .. (&gdefault ? '' : 'g')
|
||||
|
||||
if unsetwidth
|
||||
let $MANWIDTH = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user