Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _diff3: Enhance positional argument descriptions (thanks, Oliver).



---
 Completion/Unix/Command/_diff3 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Completion/Unix/Command/_diff3 b/Completion/Unix/Command/_diff3
index 81e274d05..524507ce0 100644
--- a/Completion/Unix/Command/_diff3
+++ b/Completion/Unix/Command/_diff3
@@ -39,8 +39,8 @@ else
 fi
 
 _arguments -s -S $args \
-  '1:updated file:_files' \
-  '2:original file:_files' \
-  '3:updated file:_files' \
+  '1: : _wanted files expl "first updated file (${${(As.:.)opt_args[-L]}[1]:-mine})" _files' \
+  '2: : _wanted files expl "original file (${${(As.:.)opt_args[-L]}[2]:-old})" _files' \
+  '3: : _wanted files expl "second updated file (${${(As.:.)opt_args[-L]}[3]:-their})" _files' \
   + '(ed)' $ed
 



Messages sorted by: Reverse Date, Date, Thread, Author