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

2 views
Skip to first unread message

Christian Brabandt

unread,
Oct 5, 2023, 2:45:11 PM10/5/23
to vim...@googlegroups.com
runtime(netrw): diff (`df`) may open the wrong window (#13275)

Commit: https://github.com/vim/vim/commit/0e958410046aa764ec73b14b1d2839053b31d242
Author: KSR-Yasuda <31273423+...@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 <c...@256bit.org>

diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index e3ac12ffb..2358e2627 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("<slnum>"))
exe "NetrwKeepj e ".fnameescape(fname)
diffthis
Reply all
Reply to author
Forward
0 new messages