File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments