diff options
| author | Tom Praschan <13141438+tom-anders@users.noreply.github.com> | 2021-05-15 18:54:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-15 12:54:53 -0400 |
| commit | b78d4ef10c72597c322baaa3830c760a26734b21 (patch) | |
| tree | 77b137cac807c4e17d2267684c1824831e39d642 /lua | |
| parent | d466135418fba1914de557de8cfbb8e376ac5f9e (diff) | |
Reset multi-selection in Picker:refresh() (#830)
If there's a new finder the multi selection is invalidated, so reset it
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 60d3802..7613daf 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -640,7 +640,10 @@ function Picker:refresh(finder, opts) if opts.reset_prompt then self:reset_prompt() end self.finder:close() - if finder then self.finder = finder end + if finder then + self.finder = finder + self._multi = MultiSelect:new() + end self.__on_lines(nil, nil, nil, 0, 1) end |
