Skip to content

Commit 59cf695

Browse files
author
Fabijan Zulj
committed
fix: disable using pattern matching when finding text to highlight
1 parent cfc4385 commit 59cf695

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blame/views/window_view.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function WindowView:add_highlights(lines_with_hl)
7979
if value.hl then
8080
local text_line = lines[line.idx]
8181
local startindex, endindex =
82-
string.find(text_line, value.textValue)
82+
string.find(text_line, value.textValue, nil, true)
8383
if startindex ~= nil and endindex ~= nil then
8484
vim.api.nvim_buf_add_highlight(
8585
vim.api.nvim_win_get_buf(self.blame_window),

0 commit comments

Comments
 (0)