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.
This commit is contained in:
zeertzjq
2021-08-26 19:36:31 +08:00
committed by GitHub
parent d8ddd1e425
commit 6ff1e3fa1f

View File

@@ -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