zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] _multi_parts doesn't always pass -f to compadd
@ 2019-12-22  4:46 dana
  2019-12-22  5:31 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: dana @ 2019-12-22  4:46 UTC (permalink / raw)
  To: Zsh Workers List

I noticed this the other day and forgot about it until now. In some cases
(seemingly the most common ones?), _multi_parts doesn't pass -f to compadd,
which prevents colours/symbols from being applied to files. Just adding -f to
the list of options that are passed unconditionally seems to fix it? Possibly
some of the other options could be added too, but i didn't check

dana


diff --git a/Completion/Base/Utility/_multi_parts b/Completion/Base/Utility/_multi_parts
index 00e3e26cc..8a77ff0f0 100644
--- a/Completion/Base/Utility/_multi_parts
+++ b/Completion/Base/Utility/_multi_parts
@@ -15,7 +15,7 @@ typeset -U tmp1 matches
 
 zparseopts -D -a sopts \
     'J+:=group' 'V+:=group' 'x+:=expl' 'X+:=expl' 'P:=opts' 'F:=opts' \
-    S: r: R: q 1 2 o+: n f 'M+:=matcher' 'i=imm'
+    S: r: R: q 1 2 o+: n 'f=opts' 'M+:=matcher' 'i=imm'
 
 sopts=( "$sopts[@]" "$opts[@]" )
 if (( $#matcher )); then


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-22  5:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-22  4:46 [PATCH] _multi_parts doesn't always pass -f to compadd dana
2019-12-22  5:31 ` Bart Schaefer
2019-12-22  5:36   ` dana

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