diff options
| author | Luke Kershaw <35707277+l-kershaw@users.noreply.github.com> | 2022-01-15 22:27:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-15 22:27:03 +0000 |
| commit | 2bfc0eb2cf12237eb0ac15498229341ededfaa0d (patch) | |
| tree | 9cb6a9f7864db3936ba214b4920bff0da0c3db79 /lua/telescope/pickers | |
| parent | 860cc656632dbee8d817b1dfa5e6a5a73265286f (diff) | |
fix: update `multi_icon` with `select/drop/toggle_all` actions (#1682)
* fix: `multi_icon` with `select/drop/toggle_all`
* typos
* fix: add check for no caret found
* fix: add check for no line found
* fix: check `max_results` in `Picker:can_select_row`
- also switch order of highlighting in `select/drop/toggle_all` actions
* fix: make `max_results` check a strict inequality
* [docgen] Update doc/telescope.txt
skip-checks: true
* fix: update `prompt_status` on `select/drop/toggle_all` actions
Co-authored-by: Github Actions <actions@github>
Diffstat (limited to 'lua/telescope/pickers')
| -rw-r--r-- | lua/telescope/pickers/highlights.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lua/telescope/pickers/highlights.lua b/lua/telescope/pickers/highlights.lua index 944d02c..be693a7 100644 --- a/lua/telescope/pickers/highlights.lua +++ b/lua/telescope/pickers/highlights.lua @@ -5,7 +5,7 @@ local conf = require("telescope.config").values local highlights = {} local ns_telescope_selection = a.nvim_create_namespace "telescope_selection" -local ns_telescope_multiselection = a.nvim_create_namespace "telescope_mulitselection" +local ns_telescope_multiselection = a.nvim_create_namespace "telescope_multiselection" local ns_telescope_entry = a.nvim_create_namespace "telescope_entry" local Highlighter = {} @@ -19,7 +19,7 @@ end function Highlighter:hi_display(row, prefix, display_highlights) -- This is the bug that made my highlight fixes not work. - -- We will leave the solutino commented, so the test fails. + -- We will leave the solution commented, so the test fails. if not display_highlights or vim.tbl_isempty(display_highlights) then return end @@ -109,9 +109,9 @@ function Highlighter:hi_multiselect(row, is_selected) ) -- This is still kind of weird to me, since it seems like I'm erasing stuff - -- when i shouldn't... perhaps it's a bout the gravity of the extmark? + -- when I shouldn't... Perhaps it's about the gravity of the extmark? if #existing_marks > 0 then - log.trace("Clearning highlight multi select row: ", row) + log.trace("Clearing highlight multi select row: ", row) vim.api.nvim_buf_clear_namespace(results_bufnr, ns_telescope_multiselection, row, row + 1) end |
