mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(input): zindex
This commit is contained in:
parent
4f1493025f
commit
67d690d362
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ function M.input(opts, on_confirm)
|
||||||
})
|
})
|
||||||
|
|
||||||
local parent_zindex = vim.api.nvim_win_get_config(parent_win).zindex
|
local parent_zindex = vim.api.nvim_win_get_config(parent_win).zindex
|
||||||
opts.win.zindex = parent_zindex and parent_zindex + 1 or opts.win.zindex
|
opts.win.zindex = math.max(parent_zindex + 1, opts.win.zindex or 50)
|
||||||
|
|
||||||
local min_width = opts.win.width or 60
|
local min_width = opts.win.width or 60
|
||||||
if opts.expand then
|
if opts.expand then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue