diff options
author | Anmol Sethi <nhooyr@users.noreply.github.com> | 2017-01-01 09:09:27 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-01-01 15:09:27 +0100 |
commit | f6c4e0961d4906113c5a28c9679244ea057a1e16 (patch) | |
tree | f361ab8941b4e1655c9178f548a9bdc193c31450 | |
parent | 61d4ca214fef227aeb69ff02c2eb39f7a9e1e89e (diff) | |
download | rneovim-f6c4e0961d4906113c5a28c9679244ea057a1e16.tar.gz rneovim-f6c4e0961d4906113c5a28c9679244ea057a1e16.tar.bz2 rneovim-f6c4e0961d4906113c5a28c9679244ea057a1e16.zip |
man.vim: remove newline from man errors (#5852)
-rw-r--r-- | runtime/autoload/man.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |