From 26504eecbdb8808618d1d57b8f6cf85ac8c5ad6a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 23 Apr 2017 22:34:41 -0400 Subject: [PATCH] Correctly eliminate trailing space in :Gpush Note to self: don't test changes to :Gpush by pushing them. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 5819571..3eadd82 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1641,7 +1641,7 @@ function! s:Dispatch(bang, args) try let b:current_compiler = 'git' let &l:errorformat = s:common_efm - let &l:makeprg = s:git_command() . (empty(a:args) ? '' : ' ' . a:args) + let &l:makeprg = substitute(s:git_command() . ' ' . a:args, '\s\+$', '', '') execute cd fnameescape(s:repo().tree()) if exists(':Make') == 2 noautocmd Make