mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-04 03:36:04 +00:00
fix results win cursor for sorting_strategy descending (#2679)
* add an additional nvim_win_set_cursor
* Fix after filter
* remove redundant check
* use `redraw!` to replace ugly `nvim_win_set_cursor`
* redraw results win in `on_lines`
* use move instead of redraw
* fix
* keep both!
* fix!
* fix!
(cherry picked from commit 3fae9c1e14)
This commit is contained in:
committed by
Simon Hauser
parent
a52167fe41
commit
d3105f70dd
@@ -1329,7 +1329,7 @@ function Picker:get_result_completor(results_bufnr, find_id, prompt, status_upda
|
||||
self:clear_extra_rows(results_bufnr)
|
||||
self.sorter:_finish(prompt)
|
||||
|
||||
if self.wrap_results and self.sorting_strategy == "descending" then
|
||||
if self.sorting_strategy == "descending" then
|
||||
local visible_result_rows = vim.api.nvim_win_get_height(self.results_win)
|
||||
vim.api.nvim_win_set_cursor(self.results_win, { self.max_results - visible_result_rows, 1 })
|
||||
vim.api.nvim_win_set_cursor(self.results_win, { self.max_results, 1 })
|
||||
|
||||
Reference in New Issue
Block a user