mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23: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()
|
||||
if getwinvar('#', '&diff')
|
||||
wincmd p
|
||||
call feedkeys("\<C-W>p", 'n')
|
||||
call feedkeys(winnr."\<C-W>w", 'n')
|
||||
endif
|
||||
return ''
|
||||
catch /^fugitive:/
|
||||
|
||||
Reference in New Issue
Block a user