mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 23:03:51 -05:00
s:Diff: use winnr with <C-W>w instead of <C-W>p
This is more reliable and fixes an issue where the syntastic location
list of the original file would be focused after `:Gdiff`.
Ref: c99f0ff06b (commitcomment-9434351)
This commit is contained in:
@@ -1759,7 +1759,7 @@ function! s:Diff(vert,...) abort
|
|||||||
let winnr = winnr()
|
let winnr = winnr()
|
||||||
if getwinvar('#', '&diff')
|
if getwinvar('#', '&diff')
|
||||||
wincmd p
|
wincmd p
|
||||||
call feedkeys("\<C-W>p", 'n')
|
call feedkeys(winnr."\<C-W>w", 'n')
|
||||||
endif
|
endif
|
||||||
return ''
|
return ''
|
||||||
catch /^fugitive:/
|
catch /^fugitive:/
|
||||||
|
|||||||
Reference in New Issue
Block a user