diff options
-rw-r--r-- | plugin/gentoo-common.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim index a15636a..1c9f4ed 100644 --- a/plugin/gentoo-common.vim +++ b/plugin/gentoo-common.vim @@ -13,8 +13,8 @@ let g:loaded_gentoo_common=1 fun! GentooGetUser() let l:result = expand("\$ECHANGELOG_USER") if l:result ==# "\$ECHANGELOG_USER" - let l:email = executable('git') ? system('git config --global user.email') : expand('$HOST') - let l:name = executable('git') ? system('git config --global user.name') : expand('$USER') + let l:email = executable('git') ? trim(system('git config --global user.email')) : expand('$HOST') + let l:name = executable('git') ? trim(system('git config --global user.name')) : expand('$USER') let l:result = l:name . ' <' . l:email . '>' endif return l:result |