Skip to content

Commit

Permalink
fix: select correct results row with sorting_strategy=ascending (nvim…
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7a7a authored and Weyaaron committed Mar 19, 2024
1 parent db8bef0 commit 84f3d99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/telescope/pickers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,8 @@ function Picker:get_result_completor(results_bufnr, find_id, prompt, status_upda
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 })
else
vim.api.nvim_win_set_cursor(self.results_win, { 1, 0 })
end
self:_on_complete()
end)
Expand Down

0 comments on commit 84f3d99

Please sign in to comment.