Skip to content

Commit

Permalink
man.vim: call s:error in man#read_page (#6362)
Browse files Browse the repository at this point in the history
The comment is incorrect, s:error does need to be called. I thought the
call was unnecessary because it didn't show any message for me but I had
shortmess+=F which was hiding the message.
  • Loading branch information
nhooyr authored and justinmk committed Mar 25, 2017
1 parent 098e914 commit a346cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/autoload/man.vim
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function! man#read_page(ref) abort
let [sect, name, path] = s:verify_exists(sect, name)
let page = s:get_page(path)
catch
" call to s:error() is unnecessary
call s:error(v:exception)
return
endtry
let b:man_sect = sect
Expand Down

0 comments on commit a346cb1

Please sign in to comment.