fix(input): zindex. Closes #2302

This commit is contained in:
Folke Lemaitre 2025-10-21 14:45:04 +02:00
parent df018edfdb
commit d491236941
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -217,7 +217,7 @@ function M.input(opts, on_confirm)
})
local parent_zindex = vim.api.nvim_win_get_config(parent_win).zindex
opts.win.zindex = math.max(parent_zindex + 1, opts.win.zindex or 50)
opts.win.zindex = math.max((parent_zindex or 50) + 1, opts.win.zindex or 50)
local min_width = opts.win.width or 60
if opts.expand then