fix(layout): deep merge instead of shallow merge for window options. Closes #1166

This commit is contained in:
Folke Lemaitre 2025-02-14 12:38:43 +01:00
parent f1c683033d
commit 27256cf989
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -438,8 +438,7 @@ function M:update_win(win, parent)
w.enabled = true
assert(w, ("win %s not part of layout"):format(win.win))
-- add win opts from layout
w.opts = vim.tbl_extend(
"force",
w.opts = Snacks.config.merge(
vim.deepcopy(self.win_opts[win.win] or {}),
{
width = 0,