aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-10-06 09:51:19 +0200
committerChristian Clason <c.clason@uni-graz.at>2023-10-06 10:18:33 +0200
commita6cccd728a5b9363661c3daf79046afe4b37a5ee (patch)
treedeea531adae7fba0b3fc2882b748850db3256aa2
parentac6d8d008720f80bdbc5f44c6a75aa78c816dc52 (diff)
downloadrneovim-a6cccd728a5b9363661c3daf79046afe4b37a5ee.tar.gz
rneovim-a6cccd728a5b9363661c3daf79046afe4b37a5ee.tar.bz2
rneovim-a6cccd728a5b9363661c3daf79046afe4b37a5ee.zip
vim-patch:0e958410046a
runtime(netrw): diff (`df`) may open the wrong window (vim/vim#13275) closes: vim/vim#11359 https://github.com/vim/vim/commit/0e958410046aa764ec73b14b1d2839053b31d242 Co-authored-by: KSR-Yasuda <31273423+KSR-Yasuda@users.noreply.github.com>
-rw-r--r--runtime/autoload/netrw.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim
index 22431d89e1..dcaa075608 100644
--- a/runtime/autoload/netrw.vim
+++ b/runtime/autoload/netrw.vim
@@ -7332,8 +7332,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