Skip to content

Commit 76b5726

Browse files
committed
fix(xfunc ssh identityfile): localize change to cur
1 parent a3345c6 commit 76b5726

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

completions/ssh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ _comp_cmd_ssh__configfile()
274274
# shellcheck disable=SC2120
275275
_comp_xfunc_ssh_identityfile()
276276
{
277+
local cur=$cur
277278
[[ ! $cur && -d ~/.ssh ]] && cur=~/.ssh/id
278279
_comp_compgen -a filedir
279280
if ((${#COMPREPLY[@]} > 0)); then

0 commit comments

Comments
 (0)