Skip to content

Commit

Permalink
xmodmap: Use _parse_help instead of hardcoded option list
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 6, 2018
1 parent 51863c4 commit fa278dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions completions/xmodmap
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ _xmodmap()
esac

if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-display -help -grammar -verbose -quiet -n
-e -pm -pk -pke -pp' -- "$cur" ) )
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
return
fi

Expand Down

0 comments on commit fa278dc

Please sign in to comment.