From f6c4e0961d4906113c5a28c9679244ea057a1e16 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Sun, 1 Jan 2017 09:09:27 -0500 Subject: man.vim: remove newline from man errors (#5852) --- runtime/autoload/man.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/autoload/man.vim b/runtime/autoload/man.vim index dbb46914a2..6fed4a54e3 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -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 -- cgit