From: KSR-Yasuda <31273423+KSR-Yasuda@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:37:15 +0000 (+0900) Subject: runtime(netrw): diff (`df`) may open the wrong window (#13275) X-Git-Tag: v9.0.1990~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e958410046aa764ec73b14b1d2839053b31d242;p=thirdparty%2Fvim.git runtime(netrw): diff (`df`) may open the wrong window (#13275) closes: #11359 Signed-off-by: Christian Brabandt --- 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