Shortened placeholders in bar

This commit is contained in:
2026-11-01 12:47:11 +01:00
parent 0649340152
commit 8e36c8c791
4 changed files with 6 additions and 8 deletions
+2 -4
View File
@@ -3110,8 +3110,8 @@ tag(const Arg *arg)
drawbars();
}
/* Workspace label: first tagtitlelen characters of the tag's master client
* title, padded with spaces. Empty tags show tagempty. */
/* Workspace label: at most tagtitlelen characters of the tag's master client
* title. Empty tags show tagempty. */
void
taglabel(Monitor *m, unsigned int i, char *buf, size_t size)
{
@@ -3139,8 +3139,6 @@ taglabel(Monitor *m, unsigned int i, char *buf, size_t size)
while ((*s & 0xc0) == 0x80 && n < size - 1);
chars++;
}
for (; chars < tagtitlelen && n < size - 1; chars++)
buf[n++] = ' ';
buf[n] = '\0';
}