diff options
Diffstat (limited to 'runtime/autoload/man.vim')
-rw-r--r-- | runtime/autoload/man.vim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index a3632a10c3..6c2d4eae8e 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -30,10 +30,11 @@ function! man#open_page(count, count1, ...) abort if a:0 > 2 call s:error('too many arguments') return - elseif a:0 ==# 0 - call s:error('missing argument') - return elseif a:0 ==# 1 + if empty(a:1) + call s:error('no identifier under cursor') + return + endif let ref = a:1 else " We combine the name and sect into a manpage reference so that all |