motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 461c1beefa8b317d21833c4ea3976238f7fc7757 (tree)
parent 0d6ffcc3a96af4e609cf3ac045d3cf981095f48b
Author: Tim Pope <code@tpope.net>
Date:   Mon,  1 Jul 2019 17:58:33 -0400

Fix extra space in win32 environment variables

Closes https://github.com/tpope/vim-fugitive/issues/1271

Diffstat:
Mautoload/fugitive.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -285,7 +285,7 @@ function! fugitive#Prepare(...) abort let var = get(s:prepare_env, tolower(key), key) let val = matchstr(cmd[i+1], '=\zs.*') if s:winshell() - let pre .= 'set ' . var . '=' . s:shellesc(val) . ' & ' + let pre .= 'set ' . var . '=' . s:shellesc(val) . '& ' else let pre = (len(pre) ? pre : 'env ') . var . '=' . s:shellesc(val) . ' ' endif @@ -2695,7 +2695,7 @@ function! s:CommitCommand(line1, line2, range, count, bang, mods, reg, arg, args endif let cdback = s:Cd(tree) if s:winshell() - let command = 'set GIT_EDITOR=false & ' + let command = 'set GIT_EDITOR=false& ' else let command = 'env GIT_EDITOR=false ' endif