mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:6e5a6c9965f6
runtime(netrw): minor changes to fix move cmd on windows (vim/vim#13823)
6e5a6c9965
Co-authored-by: MiguelBarro <45819833+MiguelBarro@users.noreply.github.com>
This commit is contained in:
@@ -7802,7 +7802,7 @@ fun! s:NetrwMarkFileMove(islocal)
|
|||||||
let movecmd = netrw#WinPath(movecmd).movecmdargs
|
let movecmd = netrw#WinPath(movecmd).movecmdargs
|
||||||
" call Decho("windows exception: movecmd<".movecmd."> (#1: had a space)",'~'.expand("<slnum>"))
|
" call Decho("windows exception: movecmd<".movecmd."> (#1: had a space)",'~'.expand("<slnum>"))
|
||||||
else
|
else
|
||||||
let movecmd = netrw#WinPath(movecmd)
|
let movecmd = netrw#WinPath(g:netrw_localmovecmd)
|
||||||
" call Decho("windows exception: movecmd<".movecmd."> (#2: no space)",'~'.expand("<slnum>"))
|
" call Decho("windows exception: movecmd<".movecmd."> (#2: no space)",'~'.expand("<slnum>"))
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
@@ -7816,10 +7816,6 @@ fun! s:NetrwMarkFileMove(islocal)
|
|||||||
endif
|
endif
|
||||||
if !g:netrw_cygwin && (has("win32") || has("win95") || has("win64") || has("win16"))
|
if !g:netrw_cygwin && (has("win32") || has("win95") || has("win64") || has("win16"))
|
||||||
let fname= substitute(fname,'/','\\','g')
|
let fname= substitute(fname,'/','\\','g')
|
||||||
if g:netrw_keepdir
|
|
||||||
" Jul 19, 2022: fixing file move when g:netrw_keepdir is 1
|
|
||||||
let fname= b:netrw_curdir."\\".fname
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
" call Decho("system(".movecmd." ".s:ShellEscape(fname)." ".tgt.")",'~'.expand("<slnum>"))
|
" call Decho("system(".movecmd." ".s:ShellEscape(fname)." ".tgt.")",'~'.expand("<slnum>"))
|
||||||
let ret= system(movecmd.g:netrw_localmovecmdopt." ".s:ShellEscape(fname)." ".tgt)
|
let ret= system(movecmd.g:netrw_localmovecmdopt." ".s:ShellEscape(fname)." ".tgt)
|
||||||
|
Reference in New Issue
Block a user