commit f71079db4d83bd0ebd0bc79a357fae2127966045 (tree)
parent cbf96cc01a429143c9a135ae572fec5ffaad8c40
Author: Tim Pope <code@tpope.net>
Date: Mon, 25 Jun 2018 12:51:34 -0400
Work around guioptions+=! on Windows
Closes https://github.com/tpope/vim-fugitive/issues/1042
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -1009,7 +1009,11 @@ function! s:Commit(mods, args, ...) abort
let outfile = tempname()
let errorfile = tempname()
try
+ let guioptions = &guioptions
try
+ if &guioptions =~# '!'
+ setglobal guioptions-=!
+ endif
execute cd s:fnameescape(repo.tree())
if s:winshell()
let command = ''
@@ -1029,6 +1033,7 @@ function! s:Commit(mods, args, ...) abort
let error = v:shell_error
finally
execute cd s:fnameescape(dir)
+ let &guioptions = guioptions
endtry
if !has('gui_running')
redraw!