diff options
| author | TJ DeVries <devries.timothyj@gmail.com> | 2020-10-08 22:35:17 -0400 |
|---|---|---|
| committer | TJ DeVries <devries.timothyj@gmail.com> | 2020-10-08 22:35:17 -0400 |
| commit | 1222cc5b42b88b71f44d17928ef655da9de7cdf3 (patch) | |
| tree | 6639ce787b3a8b20ce6fd0b4b30172599dac2e6e /lua/telescope/pickers.lua | |
| parent | 59497d664086c4c7aa24a15a1c3b9ccf718ce9c7 (diff) | |
nit: Log when we fail with a busted bufnr
Diffstat (limited to 'lua/telescope/pickers.lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 3dc0caa..8d31686 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -193,6 +193,11 @@ function Picker:get_reset_row() end function Picker:clear_extra_rows(results_bufnr) + if not vim.api.nvim_buf_is_valid(results_bufnr) then + log.debug("Invalid results_bufnr for clearing:", results_bufnr) + return + end + local worst_line if self.sorting_strategy == 'ascending' then local num_results = self.manager:num_results() |
