diff options
| author | luukvbaal <luukvbaal@gmail.com> | 2026-01-27 00:18:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-26 18:18:51 -0500 |
| commit | d30d91f3a49e19e61473b74e42adf68e9215220d (patch) | |
| tree | 3a53d17a0d7565f0b59b72a18d132e00eef8194d /runtime/lua/vim/_extui/shared.lua | |
| parent | e9d03b92b67ca8c798c95efe9b6abc7dae0666b3 (diff) | |
fix(ui): only internal messages are unsafe #37462
Problem: Fast context for msg_show event inhibits vim.ui_attach from
displaying a stream of messages from a single command.
Solution: Remove fast context from msg_show events emitted as a result
of explicit API/command calls. The fast context was originally
introduced to prevent issues with internal messages.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
| -rw-r--r-- | runtime/lua/vim/_extui/shared.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua index 0c9908f12b..4f28ab6d69 100644 --- a/runtime/lua/vim/_extui/shared.lua +++ b/runtime/lua/vim/_extui/shared.lua @@ -5,6 +5,7 @@ local M = { ns = api.nvim_create_namespace('nvim._ext_ui'), augroup = api.nvim_create_augroup('nvim._ext_ui', {}), cmdheight = vim.o.cmdheight, -- 'cmdheight' option value set by user. + redrawing = false, -- True when redrawing to display UI event. wins = { cmd = -1, dialog = -1, msg = -1, pager = -1 }, bufs = { cmd = -1, dialog = -1, msg = -1, pager = -1 }, cfg = { |
