changeset 33477:c5e0ce8a104e

runtime(netrw): diff (`df`) may open the wrong window (#13275) Commit: https://github.com/vim/vim/commit/0e958410046aa764ec73b14b1d2839053b31d242 Author: KSR-Yasuda <31273423+KSR-Yasuda@users.noreply.github.com> Date: Fri Oct 6 03:37:15 2023 +0900 runtime(netrw): diff (`df`) may open the wrong window (https://github.com/vim/vim/issues/13275) closes: https://github.com/vim/vim/issues/11359 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 05 Oct 2023 20:45:05 +0200
parents 6e6ca404b6f9
children 26a606faa9cb
files runtime/autoload/netrw.vim
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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("<slnum>"))
      exe "NetrwKeepj e ".fnameescape(fname)
      diffthis