dmenu-noxz

[fork] suckless dmenu - personal fork
git clone https://noxz.tech/git/dmenu-noxz.git
Log | Files | README | LICENSE

commit: 7de4c55668023b91770caae1601dcad1d5787a77
parent: b149460b04b6f7e3fcf9eb8d4651ca369a649783
author: Chris Noxz <chris@noxz.tech>
date:   Wed, 13 Dec 2023 20:52:58 +0100
Revert ellipsis to ...
Mdrw.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drw.c b/drw.c
@@ -270,7 +270,7 @@ 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, "\u2026");
+		ellipsis_width = drw_fontset_getwidth(drw, "...");
 	while (1) {
 		utf8strlen = 0;
 		ew = ellipsis_len = utf8strlen = 0;
@@ -325,7 +325,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
 			w -= ew;
 		}
 		if (render && overflow)
-			drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "\u2026", invert);
+			drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "...", invert);
 
 		if (!*text || overflow) {
 			break;