fix(picker.input): set as not modified when setting input through API

This commit is contained in:
Folke Lemaitre 2025-02-04 17:11:41 +01:00
parent 47b3b69570
commit 54a041f7fc
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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 = ""