mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(input): zindex. Closes #2302
This commit is contained in:
parent
df018edfdb
commit
d491236941
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue