diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2026-04-21 22:11:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-21 16:11:41 -0400 |
| commit | ff68fd6b8a84ce83c14358db1d70a562f1524ebe (patch) | |
| tree | 211e14e618038a18783612fccc8e8d37287c08b2 /src/nvim/bufwrite.c | |
| parent | fe6026825883b44b09a8d3a03f2d49bfc8ed4725 (diff) | |
fix(messages): "progress" kind for busy messages #39280
Problem: The "Scanning:" completion, bufwrite, and indent (there may be
more) messages which indicate progress can use the "progress" kind
for their msg_show event. Indent message does not have a kind.
Solution: Emit these messages with the "progress" kind. Set the message id
to the replaced kind so that a UI knows to replace it (and to provide
a migration path in case a UI was distinguishing these messages for
whatever reason).
Diffstat (limited to 'src/nvim/bufwrite.c')
| -rw-r--r-- | src/nvim/bufwrite.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/bufwrite.c b/src/nvim/bufwrite.c index f45d01a289..4a14a1ecb2 100644 --- a/src/nvim/bufwrite.c +++ b/src/nvim/bufwrite.c @@ -1081,7 +1081,6 @@ int buf_write(buf_T *buf, char *fname, char *sfname, linenr_T start, linenr_T en msg_scroll = true; // don't overwrite previous file message } if (!filtering) { - msg_ext_set_kind("bufwrite"); // show that we are busy #ifndef UNIX filemess(buf, sfname, ""); @@ -1708,10 +1707,7 @@ restore_backup: xstrlcat(IObuff, shortmess(SHM_WRI) ? _(" [w]") : _(" written"), IOSIZE); } } - - msg_ext_set_kind("bufwrite"); - msg_ext_overwrite = true; - set_keep_msg(msg_trunc(IObuff, false, 0), 0); + set_keep_msg(msg_progress(IObuff, "bufwrite", "success", 0, true, true), 0); } // When written everything correctly: reset 'modified'. Unless not |
