diff options
author | luukvbaal <luukvbaal@gmail.com> | 2025-02-20 23:04:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 14:04:27 -0800 |
commit | e16bec41b6505678d640755cebe8ec320dec2d45 (patch) | |
tree | b001cd59ee801c3c503c3f03f932db004080aac7 /runtime | |
parent | 51cf84daf9612574978731e66db45a52136b8899 (diff) | |
download | rneovim-e16bec41b6505678d640755cebe8ec320dec2d45.tar.gz rneovim-e16bec41b6505678d640755cebe8ec320dec2d45.tar.bz2 rneovim-e16bec41b6505678d640755cebe8ec320dec2d45.zip |
feat(messages): confirm kind for z=, :tselect, inputlist() #32521
Problem: Messages preceding a `cmdline_show->prompt` event can not be
distinguished as such when receiving the event. (But since
`msg_show` handlers should be scheduled, one can already check
whether a prompt is active when displaying the message.)
Solution: Rather than add a new kind again, use the `confirm` kind.
Could be seen as slightly misleading where it is more of
a choice rather than a confirmation, but that already applies
to `confirm()` as well...
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/ui.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/doc/ui.txt b/runtime/doc/ui.txt index d8a0e3d0d7..a3e09a9ea5 100644 --- a/runtime/doc/ui.txt +++ b/runtime/doc/ui.txt @@ -791,7 +791,8 @@ must handle. Name indicating the message kind: "" (empty) Unknown (consider a |feature-request|) "bufwrite" |:write| message - "confirm" |confirm()| or |:confirm| dialog + "confirm" Message preceding a prompt (|:confirm|, + |confirm()|, |inputlist()|, |z=,|, …) "emsg" Error (|errors|, internal error, |:throw|, …) "echo" |:echo| message "echomsg" |:echomsg| message |