aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_extui.lua
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2025-11-08 11:38:56 +0100
committerGitHub <noreply@github.com>2025-11-08 11:38:56 +0100
commit8d6963a6a0f083350549d259606c388ae07b266f (patch)
treeb90c83eb1d5e92bfa7484baa9908718697bdd054 /runtime/lua/vim/_extui.lua
parent466b2ac1929ab120642e2cc91fbf1699d6ee1f9c (diff)
downloadrneovim-8d6963a6a0f083350549d259606c388ae07b266f.tar.gz
rneovim-8d6963a6a0f083350549d259606c388ae07b266f.tar.bz2
rneovim-8d6963a6a0f083350549d259606c388ae07b266f.zip
fix(ui): cmdline_show is not fired after clearing the screen (#36451)
Problem: Resize events during startup may clear an active external cmdline, which is then not redrawn. UI2 VimResized autocommand does not work. UI2 message appearance may be altered by inherited window options. The message separator uses the wrong fillchar. Solution: Unset cmdline_was_last_redrawn when clearing the screen, such that cmdline_show is re-emitted. Ensure set_pos function is called without arguments. Ensure such options are unset. Use 'fillchars'->msgsep.
Diffstat (limited to 'runtime/lua/vim/_extui.lua')
-rw-r--r--runtime/lua/vim/_extui.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/_extui.lua b/runtime/lua/vim/_extui.lua
index 536b4b186d..bbb534723f 100644
--- a/runtime/lua/vim/_extui.lua
+++ b/runtime/lua/vim/_extui.lua
@@ -126,7 +126,9 @@ function M.enable(opts)
api.nvim_create_autocmd({ 'VimResized', 'TabEnter' }, {
group = ext.augroup,
- callback = ext.msg.set_pos,
+ callback = function()
+ ext.msg.set_pos()
+ end,
desc = 'Set cmdline and message window dimensions after shell resize or tabpage change.',
})