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 w:fugitive_diff_restore = restore
|
||||||
let winnr = winnr()
|
let winnr = winnr()
|
||||||
if getwinvar('#', '&diff')
|
if getwinvar('#', '&diff')
|
||||||
exe back
|
if a:keepfocus
|
||||||
if !a:keepfocus
|
exe back
|
||||||
call feedkeys(winnr."\<C-W>w", 'n')
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
return post
|
return post
|
||||||
|
|||||||
Reference in New Issue
Block a user