]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(netrw): diff (`df`) may open the wrong window (#13275)
authorKSR-Yasuda <31273423+KSR-Yasuda@users.noreply.github.com>
Thu, 5 Oct 2023 18:37:15 +0000 (03:37 +0900)
committerGitHub <noreply@github.com>
Thu, 5 Oct 2023 18:37:15 +0000 (20:37 +0200)
closes: #11359

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/netrw.vim

index e3ac12ffb5d84afaa248543ee1b21614d7e54945..2358e2627be086c8724ce86bc225f8da6a55cdf5 100644 (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