zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _diff3: Enhance positional argument descriptions (thanks, Oliver).
@ 2018-08-24 15:43 Daniel Shahaf
  0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2018-08-24 15:43 UTC (permalink / raw)
  To: zsh-workers

---
 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
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-24 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-24 15:43 [PATCH] _diff3: Enhance positional argument descriptions (thanks, Oliver) Daniel Shahaf

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).