fix: highlighting when color_devicons=false (#1328)

This commit is contained in:
Jean-Luc Bastarache
2021-10-11 12:00:28 -04:00
committed by GitHub
parent ba41f0eeb1
commit 59f5873199

View File

@@ -897,8 +897,10 @@ function Picker:entry_adder(index, entry, _, insert)
end
local set_ok, msg = pcall(vim.api.nvim_buf_set_lines, self.results_bufnr, row, row + offset, false, { display })
if set_ok and display_highlights then
if set_ok then
if display_highlights then
self.highlighter:hi_display(row, prefix, display_highlights)
end
self:highlight_one_row(self.results_bufnr, self:_get_prompt(), display, row)
end