mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	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:
		@@ -5,7 +5,7 @@ if exists('g:loaded_man')
 | 
				
			|||||||
endif
 | 
					endif
 | 
				
			||||||
let g:loaded_man = 1
 | 
					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() |
 | 
					      \ if <bang>0 | call man#init_pager() |
 | 
				
			||||||
      \ else | call man#open_page(<count>, <q-mods>, <f-args>) | endif
 | 
					      \ else | call man#open_page(<count>, <q-mods>, <f-args>) | endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user