Skip to content

Commit e709d31

Browse files
committed
fix(pickers): remove broken highlight call for autocmds
Problem: Preview buffer does not understand namespace 0. Solution: Don't call `vim.hl.range` for cosmetic highlights. This is obviously just a bandaid fix, but the additional `TelescopeBorder` highlight is not worth spending time on.
1 parent 3d757e5 commit e709d31

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lua/telescope/previewers/buffer_previewer.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,6 @@ previewers.autocommands = defaulter(function(_)
10451045

10461046
vim.bo[self.state.bufnr].filetype = "vim"
10471047
api.nvim_buf_set_lines(self.state.bufnr, 0, -1, false, display)
1048-
utils.hl_range(self.state.bufnr, 0, "TelescopeBorder", { 1, 0 }, { 1, -1 })
10491048
else
10501049
for idx, item in ipairs(results) do
10511050
if item == entry then

0 commit comments

Comments
 (0)