Fix SYMBOLS_PATCH not changing right symbol "<" (#32)

SYMBOLS_PATCH supposed to change "<" and ">". 
Although, it does replaces ">" with a user defined glyph, 
it does not do the same for "<". This commit fixes that.
This commit is contained in:
Saif Shahriar 2024-09-18 19:30:54 +00:00 committed by GitHub
parent ea263d0999
commit 23cbc819b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -647,10 +647,18 @@ drawmenu(void)
} else if (matches) { } else if (matches) {
/* draw horizontal list */ /* draw horizontal list */
x += inputw; x += inputw;
#if SYMBOLS_PATCH
w = TEXTW(symbol_1);
#else
w = TEXTW("<"); w = TEXTW("<");
#endif // SYMBOLS_PATCH
if (curr->left) { if (curr->left) {
drw_setscheme(drw, scheme[SchemeNorm]); drw_setscheme(drw, scheme[SchemeNorm]);
#if SYMBOLS_PATCH
drw_text(drw, x, 0, w, bh, lrpad / 2, symbol_1, 0
#else
drw_text(drw, x, 0, w, bh, lrpad / 2, "<", 0 drw_text(drw, x, 0, w, bh, lrpad / 2, "<", 0
#endif // SYMBOLS_PATCH
#if PANGO_PATCH #if PANGO_PATCH
, True , True
#endif // PANGO_PATCH #endif // PANGO_PATCH