aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/highlight_group.c
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2024-12-19 15:24:48 +0100
committerGitHub <noreply@github.com>2024-12-19 06:24:48 -0800
commit31d6885deba01fe0e7262dca58c94220c2fe32fc (patch)
tree8ac191d85495192f2e54e73c9b0515afed43f2ab /src/nvim/highlight_group.c
parent02bc40c19401ea9f7529cbc81bd18bd01c39bb3c (diff)
downloadrneovim-31d6885deba01fe0e7262dca58c94220c2fe32fc.tar.gz
rneovim-31d6885deba01fe0e7262dca58c94220c2fe32fc.tar.bz2
rneovim-31d6885deba01fe0e7262dca58c94220c2fe32fc.zip
fix(messages): better formatting for :highlight with ext_messages #31627
Also avoid going down message callstack with empty message, and remove expected grid for some tests where it did not change, and we are just testing for expected messages.
Diffstat (limited to 'src/nvim/highlight_group.c')
-rw-r--r--src/nvim/highlight_group.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/highlight_group.c b/src/nvim/highlight_group.c
index 2ae15254ea..afdbd4a32f 100644
--- a/src/nvim/highlight_group.c
+++ b/src/nvim/highlight_group.c
@@ -1887,8 +1887,7 @@ bool syn_list_header(const bool did_header, const int outlen, const int id, bool
if (got_int) {
return true;
}
- msg_outtrans(hl_table[id - 1].sg_name, 0, false);
- name_col = msg_col;
+ msg_col = name_col = msg_outtrans(hl_table[id - 1].sg_name, 0, false);
endcol = 15;
} else if ((ui_has(kUIMessages) || msg_silent) && !force_newline) {
msg_putchar(' ');