diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2021-11-15 15:50:23 -0500 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2021-11-15 15:50:23 -0500 |
| commit | 9ac89ebf6755e9a3f4bae86625ec76106526e57b (patch) | |
| tree | 0d3c5d95d9b65fb548aa502644709569e19c484a /lua | |
| parent | e77926a258f87c6f6c4ce96876a5d86bd0c9d3b6 (diff) | |
Fixes #1371
Force clearing the highlights while the picker is still open
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 8f932ff..b844020 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -418,7 +418,7 @@ function Picker:find() self.sorter:_start(prompt) self.manager = EntryManager:new(self.max_results, self.entry_adder, self.stats) - vim.api.nvim_buf_clear_namespace(results_bufnr, ns_telescope_matching, 0, -1) + self:_reset_highlights() local process_result = self:get_result_processor(find_id, prompt, debounced_status) local process_complete = self:get_result_completor(self.results_bufnr, find_id, prompt, status_updater) @@ -1298,6 +1298,7 @@ end function Picker:_reset_highlights() self.highlighter:clear_display() + vim.api.nvim_buf_clear_namespace(self.results_bufnr, ns_telescope_matching, 0, -1) end function Picker:_detach() |
