Fix garbled screen after :Git! and related commands

Closes https://github.com/tpope/vim-fugitive/issues/1258
This commit is contained in:
Tim Pope 2019-05-21 17:00:12 -04:00
parent 5d99841b22
commit 0f9db6af70

View File

@ -3159,6 +3159,7 @@ function! s:Open(cmd, bang, mods, arg, args) abort
silent! execute '!' . escape(git . ' --no-pager ' . args, '!#%') .
\ (&shell =~# 'csh' ? ' >& ' . temp : ' > ' . temp . ' 2>&1')
finally
redraw!
execute cdback
endtry
let temp = s:Resolve(temp)
@ -3168,7 +3169,7 @@ function! s:Open(cmd, bang, mods, arg, args) abort
endif
silent execute mods a:cmd temp
call fugitive#ReloadStatus()
return 'redraw|echo ' . string(':!' . git . ' ' . args)
return 'echo ' . string(':!' . git . ' ' . args)
endif
let [file, pre] = s:OpenParse(a:args)