* [PATCH] escape dashes in font names in _xft_fonts
@ 2014-08-26 8:45 lilydjwg
0 siblings, 0 replies; only message in thread
From: lilydjwg @ 2014-08-26 8:45 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-26 8:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-26 8:45 [PATCH] escape dashes in font names in _xft_fonts lilydjwg
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).