mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:c46c21b4ca47
runtime(netrw): fixing remote file removal via ssh (vim/vim#13942)
Make pattern, which retrieves the path component from e.g.
`scp://user@host//opt/program/file.ext` non-greedy.
c46c21b4ca
Co-authored-by: MiguelBarro <45819833+MiguelBarro@users.noreply.github.com>
This commit is contained in:
parent
e0961aaa5a
commit
0da18ae5ce
@ -10558,7 +10558,7 @@ fun! s:NetrwRemoteRmFile(path,rmfile,all)
|
||||
NetrwKeepj call netrw#ErrorMsg(s:ERROR,"for some reason b:netrw_curdir doesn't exist!",53)
|
||||
let ok="q"
|
||||
else
|
||||
let remotedir= substitute(b:netrw_curdir,'^.*//[^/]\+/\(.*\)$','\1','')
|
||||
let remotedir= substitute(b:netrw_curdir,'^.\{-}//[^/]\+/\(.*\)$','\1','')
|
||||
" call Decho("netrw_rm_cmd<".netrw_rm_cmd.">",'~'.expand("<slnum>"))
|
||||
" call Decho("remotedir<".remotedir.">",'~'.expand("<slnum>"))
|
||||
" call Decho("rmfile<".a:rmfile.">",'~'.expand("<slnum>"))
|
||||
|
Loading…
Reference in New Issue
Block a user