chiark / gitweb /
core: move status line ellipsation to 50% of the line
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Aug 2014 15:15:09 +0000 (17:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Aug 2014 15:15:09 +0000 (17:15 +0200)
http://lists.freedesktop.org/archives/systemd-devel/2014-July/021591.html

src/shared/util.c

index 347fa12098f4ce1d4ec0d03b8d478e9dcbdb8fed..3d16cd1a13a5c52d4a30d955a5235adcefe8c3c7 100644 (file)
@@ -3056,7 +3056,7 @@ int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char
                 if (emax < 3)
                         emax = 3;
 
                 if (emax < 3)
                         emax = 3;
 
-                e = ellipsize(s, emax, 75);
+                e = ellipsize(s, emax, 50);
                 if (e) {
                         free(s);
                         s = e;
                 if (e) {
                         free(s);
                         s = e;