neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ccc0b750b7e3aa6a13c77a3950fb6713252bc798
parent 025e2e07d99335e6d906fd2789c404df0408edb1
Author: Christian Clason <c.clason@uni-graz.at>
Date:   Mon, 13 May 2024 22:47:29 +0200

vim-patch:43f2edc096cb

runtime(netrw): prefer scp over pscp

regression introduced in ce2ad9ffd79fe6b2307cd46b9

The current logic is a bit funny, in that it checks for an executable of
scp, then pscp and if neither exists, it uses: scp :/
Anyway, let's fall back to the logic used before the above commit.

related: vim/vim#14739

https://github.com/vim/vim/commit/43f2edc096cbf9c67095b301a1f4325866eeba36

Co-authored-by: Christian Brabandt <cb@256bit.org>

Diffstat:
Mruntime/autoload/netrw.vim | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim @@ -281,13 +281,14 @@ call s:NetrwInit("g:netrw_rcp_cmd" , "rcp") call s:NetrwInit("g:netrw_rsync_cmd", "rsync") call s:NetrwInit("g:netrw_rsync_sep", "/") if !exists("g:netrw_scp_cmd") - if executable("pscp") + if executable("scp") + call s:NetrwInit("g:netrw_scp_cmd" , "scp -q") + elseif executable("pscp") call s:NetrwInit("g:netrw_scp_cmd", 'pscp -q') else call s:NetrwInit("g:netrw_scp_cmd" , "scp -q") endif endif - call s:NetrwInit("g:netrw_sftp_cmd" , "sftp") call s:NetrwInit("g:netrw_ssh_cmd" , "ssh")