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

[PATCH] escape dashes in font names in _xft_fonts



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