diff options
Diffstat (limited to 'completions/xmodmap')
-rw-r--r-- | completions/xmodmap | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/xmodmap b/completions/xmodmap index 38bc6391..7cfa230b 100644 --- a/completions/xmodmap +++ b/completions/xmodmap @@ -6,18 +6,18 @@ _xmodmap() _init_completion || return case $prev in - -display|-e) + -display | -e) return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur")) return fi _filedir } && -complete -F _xmodmap xmodmap + complete -F _xmodmap xmodmap # ex: filetype=sh |