From 0e958410046aa764ec73b14b1d2839053b31d242 Mon Sep 17 00:00:00 2001 From: KSR-Yasuda <31273423+KSR-Yasuda@users.noreply.github.com> Date: Fri, 6 Oct 2023 03:37:15 +0900 Subject: [PATCH] runtime(netrw): diff (`df`) may open the wrong window (#13275) closes: #11359 Signed-off-by: Christian Brabandt --- runtime/autoload/netrw.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim index e3ac12ffb5..2358e2627b 100644 --- a/runtime/autoload/netrw.vim +++ b/runtime/autoload/netrw.vim @@ -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("")) exe "NetrwKeepj e ".fnameescape(fname) diffthis