diff options
Diffstat (limited to 'Completion/X/_x_name')
-rw-r--r-- | Completion/X/_x_name | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Completion/X/_x_name b/Completion/X/_x_name index 692e56736..38d4c26d3 100644 --- a/Completion/X/_x_name +++ b/Completion/X/_x_name @@ -1,7 +1,9 @@ #autoload -if (( $# )); then - _message "$2" +local x="$argv[(I)-X]" + +if (( x )); then + _message -r "$argv[x + 1]" else _message 'name' fi |