From 41731e2f748136e469c9a0092ad367d055a98b21 Mon Sep 17 00:00:00 2001 From: "Morten M. Neergaard" <169057+xim@users.noreply.github.com> Date: Sun, 14 May 2023 22:00:59 +0200 Subject: [PATCH] fix: prefix color highlighting reset only on nvim 9.0 (#2492) This fixes issue #2461 --- lua/telescope/pickers.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 874789f..f4e9a66 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -458,7 +458,9 @@ function Picker:find() -- we need to set the prefix color after changing mode since -- https://github.com/neovim/neovim/commit/cbf9199d65325c1167d7eeb02a34c85d243e781c - self:_reset_prefix_color() + if vim.fn.has "nvim-9.0" == 1 then + self:_reset_prefix_color() + end while true do -- Wait for the next input