diff options
| author | Jean-Luc Bastarache <jbastarache@protonmail.com> | 2021-10-11 12:00:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 18:00:28 +0200 |
| commit | 59f5873199625304bf8350f0eb04ff45aee65f2f (patch) | |
| tree | d2ac0c3d7955fdc6004f8566c81e3e92f8316eae /lua | |
| parent | ba41f0eeb13796c26f6c5f3e8c44b2397a466e39 (diff) | |
fix: highlighting when `color_devicons=false` (#1328)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/pickers.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index 1996c38..9c59918 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -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 - self.highlighter:hi_display(row, prefix, display_highlights) + 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 |
