mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(win): apply win-local window options for new buffers displayed in a window. Fixes #925
This commit is contained in:
parent
1989921466
commit
cb99c46fa1
1 changed files with 1 additions and 0 deletions
|
@ -859,6 +859,7 @@ function M:set_buf(buf)
|
|||
assert(self:valid(), "Window is not valid")
|
||||
self.buf = buf
|
||||
vim.api.nvim_win_set_buf(self.win, buf)
|
||||
Snacks.util.wo(self.win, self.opts.wo)
|
||||
end
|
||||
|
||||
function M:map()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue