fix(messages): no message kind for :undo messages #31590

Problem: cannot handle `:undo` and `:redo` messages in a special way,
e.g. replace one by another.

Solution: add `undo` kind.
This commit is contained in:
Tomasz N
2024-12-16 12:07:27 +01:00
committed by GitHub
parent 01a97d2ad7
commit 9c6a3703bb
3 changed files with 32 additions and 0 deletions

View File

@@ -1862,6 +1862,7 @@ static void u_doit(int startcount, bool quiet, bool do_buf_event)
u_oldcount = -1;
}
msg_ext_set_kind("undo");
int count = startcount;
while (count--) {
// Do the change warning now, so that it triggers FileChangedRO when