From 6ff1e3fa1f6c88e8a8ce4e2e5a017bea8b5e381e Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 26 Aug 2021 19:36:31 +0800 Subject: fix(man.vim): use -addr=other instead of -range=-1 #15172 -range=-1 requires the current file to have at least lines, whereas -addr=other doesn't. -addr=other also sets to -1 by default when it is not specified, though this feature seems undocumented. --- runtime/plugin/man.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0 | call man#init_pager() | \ else | call man#open_page(, , ) | endif -- cgit