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 cf9c04af06885bf9d4064d8fa8e1ab8a62cba9cb (tree)
parent 74fc4b5eeaf85cb35946d876302e78317bc07945
Author: Tim Pope <code@tpope.net>
Date:   Sun, 30 Jun 2019 23:24:56 -0400

Eliminate environment juggling in :Gcommit

Diffstat:
Mautoload/fugitive.vim | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2681,9 +2681,7 @@ function! s:CommitCommand(line1, line2, range, count, bang, mods, reg, arg, args endif let cdback = s:Cd(tree) if s:winshell() - let command = '' - let old_editor = $GIT_EDITOR - let $GIT_EDITOR = 'false' + let command = 'set GIT_EDITOR=false & ' else let command = 'env GIT_EDITOR=false ' endif @@ -2743,9 +2741,6 @@ function! s:CommitCommand(line1, line2, range, count, bang, mods, reg, arg, args catch /^fugitive:/ return 'echoerr ' . string(v:exception) finally - if exists('old_editor') - let $GIT_EDITOR = old_editor - endif call delete(outfile) call delete(errorfile) endtry