mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 02:38:46 +00:00
fix(picker.input): set as not modified when setting input through API
This commit is contained in:
parent
47b3b69570
commit
54a041f7fc
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ function M:set(pattern, search)
|
|||
vim.api.nvim_buf_set_lines(self.win.buf, 0, -1, false, {
|
||||
self.picker.opts.live and self.filter.search or self.filter.pattern,
|
||||
})
|
||||
vim.bo[self.win.buf].modified = false
|
||||
vim.api.nvim_win_set_cursor(self.win.win, { 1, #self:get() + 1 })
|
||||
self.totals = ""
|
||||
self.win.opts.wo.statuscolumn = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue