Skip to content

Commit

Permalink
fix(scp remote_files): localize variable cur
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Apr 5, 2024
1 parent bc812df commit 34f7d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/ssh
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ _comp_cmd_scp__path_esc='[][(){}<>"'"'"',:;^&!$=?`\\|[:space:]]'
_comp_xfunc_scp_compgen_remote_files()
{
# remove backslash escape from the first colon
cur=${cur/\\:/:}
local cur=${cur/\\:/:}

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

0 comments on commit 34f7d0c

Please sign in to comment.