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 lucascdn committed Apr 29, 2024
1 parent 6312868 commit c95f73f
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 @@ -1343,6 +1343,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 c95f73f

Please sign in to comment.