mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(picker.input): prevent save dialog
This commit is contained in:
parent
8dce32f85d
commit
fcb2f508dd
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ function M.new(picker)
|
|||
vim.bo[win.buf].modified = false
|
||||
local text = picker.opts.live and self.filter.search or self.filter.pattern
|
||||
vim.api.nvim_buf_set_lines(win.buf, 0, -1, false, { text })
|
||||
vim.bo[win.buf].modified = false
|
||||
end,
|
||||
on_win = function()
|
||||
self:highlights()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue