mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
test(ui/{cmdline,message}2_spec): reduce flakiness/runtime #34875
Problem: Storing the configured 'cmdheight' value is scheduled and
may happen after cmdline2_spec already entered block_mode.
Excessive wait time for expected screen state due to delayed
ruler after an error message.
Solution: Only schedule storing the user configured 'cmdheight' if
v:vim_did_enter is unset. Use regular message instead of error.
This commit is contained in:
@@ -465,7 +465,7 @@ function M.set_pos(type)
|
||||
local function win_set_pos(win)
|
||||
local texth = type and api.nvim_win_text_height(win, {}) or {}
|
||||
local height = type and math.min(texth.all, math.ceil(o.lines * 0.5))
|
||||
local top = { vim.opt.fcs:get().horiz or o.ambw == 'single' and '─' or '-', 'WinSeparator' }
|
||||
local top = { vim.opt.fcs:get().horiz or o.ambw == 'single' and '─' or '-', 'MsgSeparator' }
|
||||
local border = win ~= ext.wins.msg and { '', top, '', '', '', '', '', '' } or nil
|
||||
local save_config = type == 'cmd' and api.nvim_win_get_config(win) or {}
|
||||
local config = {
|
||||
|
||||
Reference in New Issue
Block a user