gnokii: Fix completions of options that are prefixes for others

e.g. --getsms, --getsecurityscode
master
Ville Skyttä 2015-05-11 12:21:49 +03:00
parent ca138d05db
commit 89303303bd
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ _gnokii()
# don't provide main command completions if one is
# already on the command line
[[ $COMP_LINE =~ $( tr ' ' '|'<<<$main_cmd ) ]] && return
[[ $COMP_LINE =~ $( tr ' ' '\b|'<<<$main_cmd ) ]] && return
COMPREPLY=( $( compgen -W "$all_cmd" -- "$cur" ) )
} &&