Commit Diff


commit - 59936c7d972587a47d61161279bb8e8abc0b02f3
commit + 475d8093cb8d29d5756937bfa9e0b3b9e415f632
blob - f151ae5e2780f77aaad53ab9d7255efe9e981311
blob + 344de618bae0094f955f679a23b9d1d460c6ab39
--- drw.c
+++ drw.c
@@ -258,10 +258,8 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsig
 	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;