Skip to content

Commit 0e110b5

Browse files
committed
wip: Add todo for when bfredl implements extmarks over the EOL
1 parent 5700892 commit 0e110b5

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

lua/telescope/pickers.lua

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,7 @@ function Picker:get_status_updater(prompt_win, prompt_bufnr)
889889
return
890890
end
891891

892-
local expected_prompt_len = #self.prompt_prefix + 1
893-
local prompt_len = #current_prompt < expected_prompt_len and expected_prompt_len or #current_prompt
892+
local prompt_len = #current_prompt
894893

895894
local padding = string.rep(" ", vim.api.nvim_win_get_width(prompt_win) - prompt_len - #text - 3)
896895
vim.api.nvim_buf_clear_namespace(prompt_bufnr, ns_telescope_prompt, 0, 1)
@@ -902,6 +901,14 @@ function Picker:get_status_updater(prompt_win, prompt_bufnr)
902901
{}
903902
)
904903

904+
-- TODO: Wait for bfredl
905+
-- vim.api.nvim_buf_set_extmark(prompt_bufnr, ns_telescope_prompt, 0, 0, {
906+
-- end_line = 0,
907+
-- -- end_col = start_column + #text,
908+
-- virt_text = { { text, "NonText", } },
909+
-- virt_text_pos = "eol",
910+
-- })
911+
905912
self:_increment("status")
906913
end
907914
end

0 commit comments

Comments
 (0)