From add7ee394350f268684cff03d844f32f255fec47 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Tue, 9 Mar 2021 22:44:45 -0500 Subject: [PATCH] nit: Don't reset highlights on detach --- lua/telescope/pickers.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index a422c9f..3bb773b 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -451,8 +451,6 @@ function Picker:find() vim.api.nvim_buf_attach(prompt_bufnr, false, { on_lines = on_lines, on_detach = vim.schedule_wrap(function() - self:_reset_highlights() - on_lines = nil -- TODO: Can we add a "cleanup" / "teardown" function that completely removes these.