mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 13:04:51 +08:00
Remove 'guioptions' workaround
This commit is contained in:
@@ -3246,11 +3246,6 @@ function! s:CommitSubcommand(line1, line2, range, bang, mods, args, ...) abort
|
||||
let msgfile = fugitive#Find('.git/COMMIT_EDITMSG', dir)
|
||||
let outfile = tempname()
|
||||
try
|
||||
let guioptions = &guioptions
|
||||
try
|
||||
if &guioptions =~# '!'
|
||||
setglobal guioptions-=!
|
||||
endif
|
||||
if s:winshell()
|
||||
let command = 'set GIT_EDITOR=false& '
|
||||
else
|
||||
@@ -3278,9 +3273,6 @@ function! s:CommitSubcommand(line1, line2, range, bang, mods, args, ...) abort
|
||||
let [error_string, exec_error] = s:TempCmd(outfile, command)
|
||||
let errors = split(error_string, "\n")
|
||||
endif
|
||||
finally
|
||||
let &guioptions = guioptions
|
||||
endtry
|
||||
if !has('gui_running')
|
||||
redraw!
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user