summary refs log tree commit diff
path: root/Completion/Darwin/Command/_osascript
diff options
context:
space:
mode:
authordana <dana@dana.is>2018-06-13 18:57:23 -0500
committerdana <dana@dana.is>2018-06-13 18:57:23 -0500
commitb6e4cc1a86be43a2d28299e2c83bc3d0904e7336 (patch)
treefe4a14ed7b8f75e0ceb4b0348e1e0f12c1544971 /Completion/Darwin/Command/_osascript
parent2fb6533f04dfd8179897e6d87e22757cf73eeb6b (diff)
downloadzsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.tar.gz
zsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.tar.xz
zsh-b6e4cc1a86be43a2d28299e2c83bc3d0904e7336.zip
42992: Use _call_program to fetch argument possibilities
Diffstat (limited to 'Completion/Darwin/Command/_osascript')
-rw-r--r--Completion/Darwin/Command/_osascript2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Darwin/Command/_osascript b/Completion/Darwin/Command/_osascript
index 5e4a5f70c..5e6cebab5 100644
--- a/Completion/Darwin/Command/_osascript
+++ b/Completion/Darwin/Command/_osascript
@@ -18,7 +18,7 @@ case $state in
     # but adding the output of osalang makes this future-proof
     _values 'script language' \
       AppleScript JavaScript 'Generic Scripting System' \
-      ${(f)"$( command osalang 2> /dev/null )"} \
+      ${(f)"$( _call_program languages command osalang )"} \
     && ret=0
     ;;
   modifiers)