• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revisionf1a387b72cdfe0118d335c48ce013178b97a4a2f (tree)
Time2024-01-18 05:45:02
AuthorChristian Brabandt <cb@256b...>
CommiterChristian Brabandt

Log Message

runtime(netrw): minor changes to fix move cmd on windows (#13823)

Commit: https://github.com/vim/vim/commit/6e5a6c9965f667712494ae0a9df8a407267cc72f
Author: MiguelBarro <45819833+MiguelBarro@users.noreply.github.com>
Date: Wed Jan 17 21:35:36 2024 +0100

runtime(netrw): minor changes to fix move cmd on windows (https://github.com/vim/vim/issues/13823)
Signed-off-by: GuyBrush <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>

Change Summary

Incremental Difference

diff -r 1c5aedec78c3 -r f1a387b72cdf runtime/autoload/netrw.vim
--- a/runtime/autoload/netrw.vim Wed Jan 17 21:30:04 2024 +0100
+++ b/runtime/autoload/netrw.vim Wed Jan 17 21:45:02 2024 +0100
@@ -7862,7 +7862,7 @@
78627862 let movecmd = netrw#WinPath(movecmd).movecmdargs
78637863 " call Decho("windows exception: movecmd<".movecmd."> (#1: had a space)",'~'.expand("<slnum>"))
78647864 else
7865- let movecmd = netrw#WinPath(movecmd)
7865+ let movecmd = netrw#WinPath(g:netrw_localmovecmd)
78667866 " call Decho("windows exception: movecmd<".movecmd."> (#2: no space)",'~'.expand("<slnum>"))
78677867 endif
78687868 else
@@ -7876,10 +7876,6 @@
78767876 endif
78777877 if !g:netrw_cygwin && (has("win32") || has("win95") || has("win64") || has("win16"))
78787878 let fname= substitute(fname,'/','\\','g')
7879- if g:netrw_keepdir
7880- " Jul 19, 2022: fixing file move when g:netrw_keepdir is 1
7881- let fname= b:netrw_curdir."\\".fname
7882- endif
78837879 endif
78847880 " call Decho("system(".movecmd." ".s:ShellEscape(fname)." ".tgt.")",'~'.expand("<slnum>"))
78857881 let ret= system(movecmd.g:netrw_localmovecmdopt." ".s:ShellEscape(fname)." ".tgt)
Show on old repository browser