diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/User/_look | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Completion/User/_look b/Completion/User/_look index ea53867ee..e6c77a45e 100644 --- a/Completion/User/_look +++ b/Completion/User/_look @@ -8,11 +8,14 @@ _arguments -C -s \ '-f[case insensitive]' \ '-d[dictionary order]' \ ':string:->string' \ - ':dictionary file:_files -f' && return 0 + ':dictionary file:_files' && return 0 case "$state" in string) - [[ -n "$PREFIX" ]] && - _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX) + if [[ -n "$PREFIX" ]]; then + _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX) + else + _message 'word prefix' + fi ;; esac |