diff --git a/README.md b/README.md index f8b185a..ef3f679 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this dmenu 5.3 (7be720c, -2024-03-19) project has a different take on patching. It uses preprocessor directives to decide +Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this dmenu 5.3 (475d809, +2024-07-14) project has a different take on patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more. diff --git a/drw.c b/drw.c index 7bba61b..5c8f726 100644 --- a/drw.c +++ b/drw.c @@ -469,10 +469,8 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp usedfont = drw->fonts; if (!ellipsis_width && render) ellipsis_width = drw_fontset_getwidth(drw, ellipsis); - 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 = utf8strlen = 0; utf8str = text;