config: remove deprecated config option cursor.color

This option was deprecated in 1.23.0. Use colors-{dark,light}.cursor
instead.
This commit is contained in:
Daniel Eklöf 2025-12-20 15:56:32 +01:00
parent cf2b390f6e
commit 1caba0d993
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 5 additions and 22 deletions

View file

@ -1661,28 +1661,6 @@ parse_section_cursor(struct context *ctx)
else if (streq(key, "blink-rate"))
return value_to_uint32(ctx, 10, &conf->cursor.blink.rate_ms);
else if (streq(key, "color")) {
LOG_WARN("%s:%d: cursor.color: deprecated; use colors.cursor instead",
ctx->path, ctx->lineno);
user_notification_add(
&conf->notifications,
USER_NOTIFICATION_DEPRECATED,
xstrdup("cursor.color: use colors.cursor instead"));
if (!value_to_two_colors(
ctx,
&conf->colors_dark.cursor.text,
&conf->colors_dark.cursor.cursor,
false))
{
return false;
}
conf->colors_dark.use_custom.cursor = true;
return true;
}
else if (streq(key, "beam-thickness"))
return value_to_pt_or_px(ctx, &conf->cursor.beam_thickness);