Skip to content

Commit 34f7d0c

Browse files
committed
fix(scp remote_files): localize variable cur
1 parent bc812df commit 34f7d0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/ssh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ _comp_cmd_scp__path_esc='[][(){}<>"'"'"',:;^&!$=?`\\|[:space:]]'
469469
_comp_xfunc_scp_compgen_remote_files()
470470
{
471471
# remove backslash escape from the first colon
472-
cur=${cur/\\:/:}
472+
local cur=${cur/\\:/:}
473473

474474
local _userhost=${cur%%?(\\):*}
475475
local _path=${cur#*:}

0 commit comments

Comments
 (0)