Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] escape dashes in font names in _xft_fonts
- X-seq: zsh-workers 33054
- From: lilydjwg <lilydjwg@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] escape dashes in font names in _xft_fonts
- Date: Tue, 26 Aug 2014 16:45:16 +0800
- Disposition-notification-to: missyou11@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding :disposition-notification-to:user-agent; bh=CDnV9djmNgkEAAjBhhevHAyuA8fqekNe7dafTPMxogE=; b=KwPDA5tVtb5AsV4vieP4p38bYLSsH7js5QKuD6vpIfQ83IqBttnEFtUg5BuyWJ7Q7X R5wLJHBUyS8OIgInf5BUZPuAyIDMesMn7L0vgBuceqWaRk0dqD+fmZaABIn0jYKzMBlw vVXj24XtWB6XZP9laOD7cLXpom2GYAdvWbSWyOIBDSYM71x1AnnOLycqT69OtjrcZN36 fz3+xT2fTWWkjdmeIU9MMbHi6UtMog3FVpJ70b5cU2QkVmh1+4G0NUTTMqN+kMjlCkYD NxZCD6LNe9EuklHbCVxYGuvq0nKhGnUJWvQRfNj6fTCUMYEcViP7BBb+iM8C2BkhBYgB KyWw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Sometimes there are dashes in font names.
--- Original
+++ 5 2014-08-26 04:36:52 下午
@@ -37,7 +37,7 @@
_message -e size 'point size' && ret=0
else
_wanted fonts expl font compadd "$suf[@]" \
- ${(us:,:)$(_call_program fonts fc-list -f '%\{family\},' 2>/dev/null)} && ret=0
+ ${(us:,:)$(_call_program fonts fc-list -f '%\{family\|escape\(\\\\-\)\},' 2>/dev/null)} && ret=0
fi
return ret
--
Best regards,
lilydjwg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author