From 422fe6cd29ce014270cf8bfd6f5bcad59ce2a0ca Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 27 Jan 2021 22:52:36 -0500 Subject: Move threshold and mute indicators directly after number I don't know why I ruled this out originally, it's more visually pleasing to me now especially that threshold is likely to remain set at "+" for a long time. --- ui.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ui.c b/ui.c index 7f7eb4e..23312ed 100644 --- a/ui.c +++ b/ui.c @@ -398,14 +398,11 @@ static void statusUpdate(void) { char buf[256] = ""; struct Cat cat = { buf, sizeof(buf), 0 }; catf( - &cat, "\3%d%s %u ", - idColors[window->id], (num == windows.show ? "\26" : ""), num + &cat, "\3%d%s %u%s%s %s ", + idColors[window->id], (num == windows.show ? "\26" : ""), + num, window->thresh[(const char *[]) { "-", "", "+", "++" }], + &"="[!window->mute], idNames[window->id] ); - if (window->thresh != Cold || window->mute) { - const char *thresh[] = { "-", "", "+", "++" }; - catf(&cat, "%s%s ", thresh[window->thresh], &"="[!window->mute]); - } - catf(&cat, "%s ", idNames[window->id]); if (window->mark && window->unreadWarm) { catf( &cat, "\3%d+%d\3%d%s", -- cgit 1.4.1 ?h=twitch&id=628e064056a02cbc3fb3b758df51559d62c37a10'>refs log tree commit diff
path: root/xdg.c (unfollow)
Commit message (Expand)Author
2022-02-23Give examples of "general events" 2.1June McEnroe
2022-02-23Add missing unistd.h include in input.cJune McEnroe
2022-02-22Document the interfaceJune McEnroe
2022-02-20Clean up unimplemented editing mode stuffJune McEnroe
2022-02-20Save input buffer contentsJune McEnroe
2022-02-20Share a cut buffer between all edit buffersJune McEnroe
2022-02-20Assert return values in edit testsJune McEnroe
2022-02-20Move mbs out of struct Edit, use a global bufferJune McEnroe
2022-02-20Clear edit buffer before running commandJune McEnroe
2022-02-20Show indicator in status when window has pending inputJune McEnroe
2022-02-20Use separate edit buffers for each IDJune McEnroe
2022-02-20Make sure new cap is actually larger than new lengthJune McEnroe
2022-02-20Remove unused mbs.len field from struct EditJune McEnroe
2022-02-19Remove unneeded includes in ui.cJune McEnroe
2022-02-19Reimplement tab completeJune McEnroe
2022-02-19Handle errors from editFn, etc.June McEnroe
2022-02-19Reimplement text macrosJune McEnroe
2022-02-19Factor out input handling to input.cJune McEnroe
2022-02-19Factor out window management to window.cJune McEnroe
2022-02-19Enable -Wmissing-prototypesJune McEnroe
2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe
2022-02-19Run line editing testsJune McEnroe
2022-02-18Implement new line editing "library"June McEnroe
2022-02-18Simplify cursor positioning in inputJune McEnroe
2022-02-18Fix M-f orderingJune McEnroe
2022-02-12Move sandman build to scripts/MakefileJune McEnroe
2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe
2022-02-12Copy RPP defines from oconfigureJune McEnroe