mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker.input): use Snacks.util.wo
instead of vim.wo
. Fixes #643
This commit is contained in:
parent
79d27f19dc
commit
d6284d51ff
2 changed files with 2 additions and 2 deletions
|
@ -93,7 +93,7 @@ function M:update()
|
|||
local sc = self:statuscolumn()
|
||||
if self.win.opts.wo.statuscolumn ~= sc then
|
||||
self.win.opts.wo.statuscolumn = sc
|
||||
vim.wo[self.win.win].statuscolumn = sc
|
||||
Snacks.util.wo(self.win.win, { statuscolumn = sc })
|
||||
end
|
||||
local line = {} ---@type snacks.picker.Highlight[]
|
||||
if self.picker:is_active() then
|
||||
|
|
|
@ -122,7 +122,7 @@ function M:on_show()
|
|||
self.state.scroll = vim.wo[self.win.win].scroll
|
||||
self.state.height = vim.api.nvim_win_get_height(self.win.win)
|
||||
self.state.mousescroll = tonumber(vim.o.mousescroll:match("ver:(%d+)")) or 1
|
||||
vim.wo[self.win.win].scrolloff = 0
|
||||
Snacks.util.wo(self.win.win, { scrolloff = 0 })
|
||||
self.dirty = true
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue