mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Remove feedkeys() contortions in :Gdiffsplit
Closes https://github.com/tpope/vim-fugitive/issues/1313
This commit is contained in:
@@ -4537,9 +4537,8 @@ function! s:Diff(autodir, keepfocus, mods, ...) abort
|
||||
let w:fugitive_diff_restore = restore
|
||||
let winnr = winnr()
|
||||
if getwinvar('#', '&diff')
|
||||
if a:keepfocus
|
||||
exe back
|
||||
if !a:keepfocus
|
||||
call feedkeys(winnr."\<C-W>w", 'n')
|
||||
endif
|
||||
endif
|
||||
return post
|
||||
|
||||
Reference in New Issue
Block a user