Skip to content

Commit 3a2579e

Browse files
authored
fix: always reset prompt highlighting (#2739)
1 parent a62db88 commit 3a2579e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lua/telescope/pickers.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,6 @@ function Picker:find()
605605

606606
await_schedule()
607607

608-
-- we need to set the prefix color after changing mode since
609-
-- https://github.com/neovim/neovim/commit/cbf9199d65325c1167d7eeb02a34c85d243e781c
610-
self:_reset_prefix_color()
611-
612608
while true do
613609
-- Wait for the next input
614610
rx.last()
@@ -621,6 +617,10 @@ function Picker:find()
621617
return
622618
end
623619

620+
-- we kinda always wanna reset the color, because of `cc` and `dd` commands,
621+
-- which also delete the prefix and after prefix deletion we need to reapply highlighting
622+
self:_reset_prefix_color()
623+
624624
local start_time = vim.loop.hrtime()
625625

626626
local prompt = self:_get_next_filtered_prompt()

0 commit comments

Comments
 (0)