diff options
author | dana <dana@dana.is> | 2018-06-13 18:57:23 -0500 |
---|---|---|
committer | dana <dana@dana.is> | 2018-06-13 18:57:23 -0500 |
commit | b6e4cc1a86be43a2d28299e2c83bc3d0904e7336 (patch) | |
tree | fe4a14ed7b8f75e0ceb4b0348e1e0f12c1544971 /Completion/Darwin/Command/_scselect | |
parent | 2fb6533f04dfd8179897e6d87e22757cf73eeb6b (diff) | |
download | zsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.tar.gz zsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.tar.xz zsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.zip |
42992: Use _call_program to fetch argument possibilities
Diffstat (limited to 'Completion/Darwin/Command/_scselect')
-rw-r--r-- | Completion/Darwin/Command/_scselect | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Darwin/Command/_scselect b/Completion/Darwin/Command/_scselect index 79df2f981..ff7d2610d 100644 --- a/Completion/Darwin/Command/_scselect +++ b/Completion/Darwin/Command/_scselect @@ -13,7 +13,7 @@ _arguments -s -S : \ # For some reason scselect expects location names to be encoded in Mac OS # Roman; in order to prevent completed arguments from breaking the tool, we'll # insert the UUID instead if the name would contain incompatible characters - tmp=( ${(f)"$( command $service 2> /dev/null )"} ) + tmp=( ${(f)"$( _call_program locations $words[1] )"} ) tmp=( ${tmp[2,-1]} ) tmp=( ${tmp##[*[:space:]]##} ) tmp=( ${tmp//:/\\:} ) |