nit: Don't reset highlights on detach

This commit is contained in:
TJ DeVries
2021-03-09 22:44:45 -05:00
parent a7d359948b
commit add7ee3943

View File

@@ -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.