Mercurial > vim
changeset 33270:058fa5df3376
runtime(man): Man plugin does not respect 'gdefault'
Commit: https://github.com/vim/vim/commit/249a2088036fb77948f208050b9f7790bf3c11a8
Author: Yee Cheng Chin <ychin.git@gmail.com>
Date: Sat Sep 16 18:09:47 2023 +0200
runtime(man): Man plugin does not respect 'gdefault'
Fix the issue introduced by https://github.com/vim/vim/issues/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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2023 18:15:08 +0200 |
parents | 248c81343a3e |
children | 59f80ca2087e |
files | runtime/autoload/dist/man.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/autoload/dist/man.vim +++ b/runtime/autoload/dist/man.vim @@ -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 = ''