git: 9front

Download patch

ref: 1d693d9d831fb99ce73616ae0acb40c6d16337b0
parent: 10efd2806c04f7e9e9773dc0a73dd295edc227cf
author: Igor Böhm <igor@9lab.org>
date: Sat Jul 29 17:45:26 EDT 2023

Mail: when space is tight use ellipsis (…) instead of 3 dots (...)

See http://mux.9lab.org/img/scratch/acme-Mail-dots-vs-ellipsis.png
as an illustration.

--- a/sys/src/cmd/upas/Mail/mbox.c
+++ b/sys/src/cmd/upas/Mail/mbox.c
@@ -461,8 +461,8 @@
 	else{
 		dots = "";
 		if(utflen(s) > width){
-			width -= 3;
-			dots = "...";
+			width -= 1;
+			dots = "…";
 		}
 		Bprint(bp, "%*.*s%s", -width, width, s, dots);
 	}
@@ -471,7 +471,7 @@
 /*
  * Message format string:
  * ======================
-  * %s: subject
+ * %s: subject
  * %f: from address
  * %F: name + from address
  * %t: to address
--