Skip to content

Commit

Permalink
fix: always reset prompt highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni2461 committed Oct 11, 2023
1 parent 74ce793 commit 46f584f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/telescope/pickers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,6 @@ function Picker:find()

await_schedule()

-- we need to set the prefix color after changing mode since
-- https://github.com/neovim/neovim/commit/cbf9199d65325c1167d7eeb02a34c85d243e781c
self:_reset_prefix_color()

while true do
-- Wait for the next input
rx.last()
Expand All @@ -621,6 +617,10 @@ function Picker:find()
return
end

-- we kinda always wanna reset the color, because of `cc` and `dd` commands,
-- which also delete the prefix and after prefix deletion we need to reapply highlighting
self:_reset_prefix_color()

local start_time = vim.loop.hrtime()

local prompt = self:_get_next_filtered_prompt()
Expand Down

0 comments on commit 46f584f

Please sign in to comment.