runtime(netrw): diff (`df`) may open the wrong window (#13275)
Commit:
https://github.com/vim/vim/commit/0e958410046aa764ec73b14b1d2839053b31d242
Author: KSR-Yasuda <[email protected]>
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 <[email protected]>
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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qoTLN-009NSA-FL%40256bit.org.