Skip to content

Commit c42ca68

Browse files
committed
fix: use plain substring matching with labels
1 parent 3d2828a commit c42ca68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/gitlab/actions/summary.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ M.color_details = function(bufnr)
264264
if v == "labels" then
265265
local line_content = u.get_line_content(bufnr, i)
266266
for j, label in ipairs(state.LABELS) do
267-
local start_idx, end_idx = line_content:find(label.Name)
267+
local start_idx, end_idx = line_content:find(label.Name, 1, true)
268268
if start_idx ~= nil and end_idx ~= nil then
269269
vim.cmd("highlight " .. "label" .. j .. " guifg=white")
270270
vim.api.nvim_set_hl(0, ("label" .. j), { fg = label.Color })

0 commit comments

Comments
 (0)