Skip to content

Commit 35a5eae

Browse files
akinomyogascop
authored andcommitted
refactor(dot): use exit status of _comp_compgen_filedir
1 parent dbcef6e commit 35a5eae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ _comp_cmd_dot()
2626
return
2727
;;
2828
-o*)
29-
_comp_compgen -c "${cur#-o}" filedir
30-
((${#COMPREPLY[@]})) && COMPREPLY=("${COMPREPLY[@]/#/-o}")
29+
_comp_compgen -c "${cur#-o}" filedir &&
30+
COMPREPLY=("${COMPREPLY[@]/#/-o}")
3131
return
3232
;;
3333
esac

0 commit comments

Comments
 (0)