sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

dwm-unicode_ellipsis-20222909-d3f93c7.diff (744B)


      1 diff --git a/drw.c b/drw.c
      2 index ced7d37..95da860 100644
      3 --- a/drw.c
      4 +++ b/drw.c
      5 @@ -285,7 +285,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
      6  
      7  	usedfont = drw->fonts;
      8  	if (!ellipsis_width && render)
      9 -		ellipsis_width = drw_fontset_getwidth(drw, "...");
     10 +		ellipsis_width = drw_fontset_getwidth(drw, "…");
     11  	while (1) {
     12  		ew = ellipsis_len = utf8strlen = 0;
     13  		utf8str = text;
     14 @@ -339,7 +339,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
     15  			w -= ew;
     16  		}
     17  		if (render && overflow)
     18 -			drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "...", invert);
     19 +			drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "…", invert);
     20  
     21  		if (!*text || overflow) {
     22  			break;