diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-10 16:03:13 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-10 16:03:13 +0200 |
commit | 1cd8517344c0d99ca6fb3246c70f78d271993cf6 (patch) | |
tree | 7ee7fe55ec22c12a474d4780922ef4b8d839fc1f | |
parent | 3a6b80f2f44dcb5cd050bbbaacce4fc8a638aede (diff) | |
download | rneovim-1cd8517344c0d99ca6fb3246c70f78d271993cf6.tar.gz rneovim-1cd8517344c0d99ca6fb3246c70f78d271993cf6.tar.bz2 rneovim-1cd8517344c0d99ca6fb3246c70f78d271993cf6.zip |
man.vim: s:get_path(): trim newline in all cases
ref #8372
-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 cf657f8b37..f21e2ee4f3 100644 --- a/runtime/autoload/man.vim +++ b/runtime/autoload/man.vim @@ -215,7 +215,7 @@ function! s:get_path(sect, name) abort if empty(a:sect) " Some man implementations (OpenBSD) return all available paths from the " search command, so we get() the first one. #8341 - return get(split(s:system(['man', s:find_arg, a:name])), 0, '') + return substitute(get(split(s:system(['man', s:find_arg, a:name])), 0, ''), '\n\+$', '', '') endif " '-s' flag handles: " - tokens like 'printf(echo)' |