From 3435cdfb94b6f3c72e7f0f16fef9ff2660377cb2 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 7 Nov 2022 20:02:00 +0800 Subject: refactor(highlight): rename FloatBorderTitle #20988 requested in https://github.com/neovim/neovim/pull/20184 --- src/nvim/api/win_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/api') diff --git a/src/nvim/api/win_config.c b/src/nvim/api/win_config.c index 9f15e5a85b..648048e970 100644 --- a/src/nvim/api/win_config.c +++ b/src/nvim/api/win_config.c @@ -139,7 +139,7 @@ /// [ {"+", "MyCorner"}, {"x", "MyBorder"} ]. /// - title: Title (optional) in window border, String or list. /// List is [text, highlight] tuples. if is string the default -/// highlight group is `FloatBorderTitle`. +/// highlight group is `FloatTitle`. /// - title_pos: Title position must set with title option. /// value can be of `left` `center` `right` default is left. /// - noautocmd: If true then no buffer-related autocommand events such as @@ -364,7 +364,7 @@ static void parse_border_title(Object title, Object title_pos, FloatConfig *fcon fconfig->title = false; return; } - int hl_id = syn_check_group(S_LEN("FloatBorderTitle")); + int hl_id = syn_check_group(S_LEN("FloatTitle")); kv_push(fconfig->title_chunks, ((VirtTextChunk){ .text = xstrdup(title.data.string.data), .hl_id = hl_id })); fconfig->title_width = (int)mb_string2cells(title.data.string.data); -- cgit