From 8d6963a6a0f083350549d259606c388ae07b266f Mon Sep 17 00:00:00 2001 From: luukvbaal Date: Sat, 8 Nov 2025 11:38:56 +0100 Subject: 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. --- runtime/lua/vim/_extui/shared.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/lua/vim/_extui/shared.lua') diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua index ed0932de69..912b9054a5 100644 --- a/runtime/lua/vim/_extui/shared.lua +++ b/runtime/lua/vim/_extui/shared.lua @@ -72,6 +72,10 @@ function M.check_targets() api.nvim_set_option_value('wrap', true, { scope = 'local' }) api.nvim_set_option_value('linebreak', false, { scope = 'local' }) api.nvim_set_option_value('smoothscroll', true, { scope = 'local' }) + api.nvim_set_option_value('breakindent', false, { scope = 'local' }) + api.nvim_set_option_value('foldenable', false, { scope = 'local' }) + api.nvim_set_option_value('showbreak', '', { scope = 'local' }) + api.nvim_set_option_value('spell', false, { scope = 'local' }) api.nvim_set_option_value('swapfile', false, { scope = 'local' }) api.nvim_set_option_value('modifiable', true, { scope = 'local' }) api.nvim_set_option_value('bufhidden', 'hide', { scope = 'local' }) -- cgit