diff options
author | luukvbaal <luukvbaal@gmail.com> | 2024-11-15 23:34:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-15 14:34:42 -0800 |
commit | 6e4df18b457e9743c34068fd6e0a89fd04d3526c (patch) | |
tree | 27b360b356b7bc779b06d28c7a0bd27d359c0c3b /runtime/doc/lua.txt | |
parent | f1748b78e3165a0821a11f5ae1fb9398aa67c535 (diff) | |
download | rneovim-6e4df18b457e9743c34068fd6e0a89fd04d3526c.tar.gz rneovim-6e4df18b457e9743c34068fd6e0a89fd04d3526c.tar.bz2 rneovim-6e4df18b457e9743c34068fd6e0a89fd04d3526c.zip |
fix(ui): no fast context for prompt message kinds #31224
Problem: No longer able to show prompt messages with vim.ui_attach().
Solution: Do not execute callback in fast context for prompt message
kinds. These events must be safe to show the incoming message
so the event itself serves to indicate that the message
should be shown immediately.
Diffstat (limited to 'runtime/doc/lua.txt')
-rw-r--r-- | runtime/doc/lua.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/doc/lua.txt b/runtime/doc/lua.txt index e6f7e62e02..243c907180 100644 --- a/runtime/doc/lua.txt +++ b/runtime/doc/lua.txt @@ -1083,7 +1083,9 @@ vim.ui_attach({ns}, {options}, {callback}) *vim.ui_attach()* |ui-popupmenu| and the sections below for event format for respective events. - Callbacks for `msg_show` events are executed in |api-fast| context. + Callbacks for `msg_show` events are executed in |api-fast| context unless + Nvim will wait for input, in which case messages should be shown + immediately. Excessive errors inside the callback will result in forced detachment. |