aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-08-26 19:36:31 +0800
committerGitHub <noreply@github.com>2021-08-26 04:36:31 -0700
commit6ff1e3fa1f6c88e8a8ce4e2e5a017bea8b5e381e (patch)
tree598e5bfa7cfd054fe1a1fbba66ed257cde38de46
parentd8ddd1e4250dc14a2b4f154a0cf32ac14da5bbfd (diff)
downloadrneovim-6ff1e3fa1f6c88e8a8ce4e2e5a017bea8b5e381e.tar.gz
rneovim-6ff1e3fa1f6c88e8a8ce4e2e5a017bea8b5e381e.tar.bz2
rneovim-6ff1e3fa1f6c88e8a8ce4e2e5a017bea8b5e381e.zip
fix(man.vim): use -addr=other instead of -range=-1 #15172
-range=-1 requires the current file to have at least <count> lines, whereas -addr=other doesn't. -addr=other also sets <count> to -1 by default when it is not specified, though this feature seems undocumented.
-rw-r--r--runtime/plugin/man.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/plugin/man.vim b/runtime/plugin/man.vim
index f814fbad3b..b10677593f 100644
--- a/runtime/plugin/man.vim
+++ b/runtime/plugin/man.vim
@@ -5,7 +5,7 @@ if exists('g:loaded_man')
endif
let g:loaded_man = 1
-command! -bang -bar -range=-1 -complete=customlist,man#complete -nargs=* Man
+command! -bang -bar -addr=other -complete=customlist,man#complete -nargs=* Man
\ if <bang>0 | call man#init_pager() |
\ else | call man#open_page(<count>, <q-mods>, <f-args>) | endif