mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 03:53:47 -05:00
Fix garbled screen after :Git! and related commands
Closes https://github.com/tpope/vim-fugitive/issues/1258
This commit is contained in:
@@ -3159,6 +3159,7 @@ function! s:Open(cmd, bang, mods, arg, args) abort
|
|||||||
silent! execute '!' . escape(git . ' --no-pager ' . args, '!#%') .
|
silent! execute '!' . escape(git . ' --no-pager ' . args, '!#%') .
|
||||||
\ (&shell =~# 'csh' ? ' >& ' . temp : ' > ' . temp . ' 2>&1')
|
\ (&shell =~# 'csh' ? ' >& ' . temp : ' > ' . temp . ' 2>&1')
|
||||||
finally
|
finally
|
||||||
|
redraw!
|
||||||
execute cdback
|
execute cdback
|
||||||
endtry
|
endtry
|
||||||
let temp = s:Resolve(temp)
|
let temp = s:Resolve(temp)
|
||||||
@@ -3168,7 +3169,7 @@ function! s:Open(cmd, bang, mods, arg, args) abort
|
|||||||
endif
|
endif
|
||||||
silent execute mods a:cmd temp
|
silent execute mods a:cmd temp
|
||||||
call fugitive#ReloadStatus()
|
call fugitive#ReloadStatus()
|
||||||
return 'redraw|echo ' . string(':!' . git . ' ' . args)
|
return 'echo ' . string(':!' . git . ' ' . args)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let [file, pre] = s:OpenParse(a:args)
|
let [file, pre] = s:OpenParse(a:args)
|
||||||
|
|||||||
Reference in New Issue
Block a user