Introduction
Introduction Statistics Contact Development Disclaimer Help
drw.c: use the same pattern as ellipsis_width to check for infinite recursion -…
git clone git://git.codemadness.org/dmenu
Log
Files
Refs
README
LICENSE
---
commit 475d8093cb8d29d5756937bfa9e0b3b9e415f632
parent 59936c7d972587a47d61161279bb8e8abc0b02f3
Author: Hiltjo Posthuma <[email protected]>
Date: Sun, 14 Jul 2024 11:40:20 +0200
drw.c: use the same pattern as ellipsis_width to check for infinite recursion
Diffstat:
M drw.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/drw.c b/drw.c
@@ -258,10 +258,8 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned …
usedfont = drw->fonts;
if (!ellipsis_width && render)
ellipsis_width = drw_fontset_getwidth(drw, "...");
- if (!invalid_width) {
- invalid_width = -1; /* stop infinite recursion */
+ if (!invalid_width && render)
invalid_width = drw_fontset_getwidth(drw, invalid);
- }
while (1) {
ew = ellipsis_len = utf8err = utf8charlen = utf8strlen = 0;
utf8str = text;
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.