runtime(netrw): diff (df) may open the wrong window (#13275)

closes: #11359

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
KSR-Yasuda
2023-10-06 03:37:15 +09:00
committed by GitHub
parent f449825ae2
commit 0e95841004

View File

@ -7392,8 +7392,7 @@ fun! s:NetrwMarkFileDiff(islocal)
exe "NetrwKeepj e ".fnameescape(fname)
diffthis
elseif cnt == 2 || cnt == 3
vsplit
wincmd l
below vsplit
" call Decho("diffthis: ".fname,'~'.expand("<slnum>"))
exe "NetrwKeepj e ".fnameescape(fname)
diffthis