From 6dee1672ccc973f50e28e4adb7cbadd481db3f03 Mon Sep 17 00:00:00 2001 From: luukvbaal Date: Wed, 7 May 2025 10:02:53 +0200 Subject: fix(extui): "box" window width calculated on last line (#33881) Problem: The "box" window width is calculated on the last line when applying "last" virt_text. There may be longer lines part of the same message. Solution: Don't decrease box width if the calculated width is smaller. Minor unrelated changes. Co-authored-by: Eike --- runtime/lua/vim/_extui.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/lua/vim/_extui.lua') diff --git a/runtime/lua/vim/_extui.lua b/runtime/lua/vim/_extui.lua index 3c758ea595..75adcfa7c5 100644 --- a/runtime/lua/vim/_extui.lua +++ b/runtime/lua/vim/_extui.lua @@ -96,6 +96,7 @@ function M.enable(opts) end if vim.v.vim_did_enter == 1 then + ext.tab_check_wins() check_opt('cmdheight', vim.o.cmdheight) check_opt('termguicolors', vim.o.termguicolors) end -- cgit