aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_extui/shared.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/shared.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/shared.lua')
-rw-r--r--runtime/lua/vim/_extui/shared.lua4
1 files changed, 4 insertions, 0 deletions
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' })