aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-20 15:51:04 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-20 15:51:04 +0000
commitb75bd6507a970520784791a6ff6beb1cf771077b (patch)
tree016daea9fd7d0a855e8c176d56d4cbdf82f2fb07 /config.c
parentMerge branch 'irc-update' (diff)
notifications: use \e[22m to disable bold
\e[21m was previously used to disable bold. That changed a while ago, to align foot with the majority of other terminal emulators. \e[22m now disables both bold and dim. When this change was done, the user notifications were not updated, meaning the ‘message’ part was always in bold. This was never the intended behavior.
Diffstat (limited to 'config.c')
-rw-r--r--config.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/config.c b/config.c
index 0f8f5aec..7159d299 100644
--- a/config.c
+++ b/config.c
@@ -633,14 +633,17 @@ parse_section_main(const char *key, const char *value, struct config *conf,
}
else if (strcmp(key, "bell") == 0) {
- LOG_WARN("deprecated: %s:%d: [default]: bell: set actions in section '[bell]' instead", path, lineno);
+ LOG_WARN(
+ "deprecated: %s:%d: [default]: bell: "
+ "set actions in section '[bell]' instead", path, lineno);
- const char fmt[] = "%s:%d \033[1mbell\033[21m, use section \033[1m[bell]\033[21m instead";
- char *text = xasprintf(fmt, path, lineno);
+ const char fmt[] =
+ "%s:%d: \033[1mbell\033[22m, use \033[1murgent\033[22m in "
+ "the \033[1m[bell]\033[22m section instead";
struct user_notification deprecation = {
.kind = USER_NOTIFICATION_DEPRECATED,
- .text = text,
+ .text = xasprintf(fmt, path, lineno),
};
tll_push_back(conf->notifications, deprecation);