diff options
author | Tomasz N <przepompownia@users.noreply.github.com> | 2024-12-20 13:41:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 04:41:57 -0800 |
commit | 909b18d05a8d472b12c156e1663282bf6f5ce307 (patch) | |
tree | 1910d6e5c7f32227e73e8a9cc4df5dcaa09a5bb9 /src | |
parent | 4e130c1ee446f4389a8c76c5e81b53bff8b9193c (diff) | |
download | rneovim-909b18d05a8d472b12c156e1663282bf6f5ce307.tar.gz rneovim-909b18d05a8d472b12c156e1663282bf6f5ce307.tar.bz2 rneovim-909b18d05a8d472b12c156e1663282bf6f5ce307.zip |
fix(messages): no message kind for completion menu messages #31646
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/insexpand.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c index 872ed2b4c3..a8ee269ecd 100644 --- a/src/nvim/insexpand.c +++ b/src/nvim/insexpand.c @@ -1582,6 +1582,7 @@ static void ins_compl_files(int count, char **files, bool thesaurus, int flags, FILE *fp = os_fopen(files[i], "r"); // open dictionary file if (flags != DICT_EXACT && !shortmess(SHM_COMPLETIONSCAN)) { msg_hist_off = true; // reset in msg_trunc() + msg_ext_set_kind("completion"); vim_snprintf(IObuff, IOSIZE, _("Scanning dictionary: %s"), files[i]); msg_trunc(IObuff, true, HLF_R); @@ -3060,6 +3061,7 @@ static int process_next_cpt_value(ins_compl_next_state_T *st, int *compl_type_ar } if (!shortmess(SHM_COMPLETIONSCAN)) { msg_hist_off = true; // reset in msg_trunc() + msg_ext_set_kind("completion"); vim_snprintf(IObuff, IOSIZE, _("Scanning: %s"), st->ins_buf->b_fname == NULL ? buf_spname(st->ins_buf) @@ -3092,6 +3094,7 @@ static int process_next_cpt_value(ins_compl_next_state_T *st, int *compl_type_ar } else if (*st->e_cpt == ']' || *st->e_cpt == 't') { compl_type = CTRL_X_TAGS; if (!shortmess(SHM_COMPLETIONSCAN)) { + msg_ext_set_kind("completion"); msg_hist_off = true; // reset in msg_trunc() vim_snprintf(IObuff, IOSIZE, "%s", _("Scanning tags.")); msg_trunc(IObuff, true, HLF_R); @@ -4602,6 +4605,7 @@ static void ins_compl_show_statusmsg(void) if (edit_submode_extra != NULL) { if (!p_smd) { msg_hist_off = true; + msg_ext_set_kind("completion"); msg(edit_submode_extra, (edit_submode_highl < HLF_COUNT ? (int)edit_submode_highl + 1 : 0)); msg_hist_off = false; |