mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
man.vim: remove newline from man errors (#5852)
This commit is contained in:
parent
61d4ca214f
commit
f6c4e0961d
@ -106,7 +106,7 @@ function! s:system(cmd, ...) abort
|
||||
throw printf('command interrupted: %s', join(a:cmd))
|
||||
endif
|
||||
if opts.exit_code != 0
|
||||
throw printf("command error (%d) %s: %s", jobid, join(a:cmd), opts.stderr)
|
||||
throw printf("command error (%d) %s: %s", jobid, join(a:cmd), substitute(opts.stderr, '\_s\+$', '', &gdefault ? '' : 'g'))
|
||||
endif
|
||||
|
||||
return opts.stdout
|
||||
|
Loading…
Reference in New Issue
Block a user