mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-03 18:28:38 +00:00
fix(win): don't enter when focusable is false
This commit is contained in:
parent
a1da66e3bf
commit
ca233c7448
1 changed files with 1 additions and 0 deletions
|
@ -346,6 +346,7 @@ function M:open_win()
|
|||
local relative = self.opts.relative or "editor"
|
||||
local position = self.opts.position or "float"
|
||||
local enter = self.opts.enter == nil or self.opts.enter or false
|
||||
enter = not self.opts.focusable and enter or false
|
||||
local opts = self:win_opts()
|
||||
if position == "float" then
|
||||
self.win = vim.api.nvim_open_win(self.buf, enter, opts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue