Skip to content

Commit

Permalink
fix(labeler): put original pattern in a \%() group. Fixes some skip…
Browse files Browse the repository at this point in the history
… label issues
  • Loading branch information
folke committed Jun 28, 2023
1 parent 6d197a9 commit 6102a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/flash/labeler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function M:skip(win, labels)
label_group = label_group:lower()
end

local p = pattern .. "\\m\\zs[" .. label_group .. "]"
local p = "\\%(" .. pattern .. "\\)\\m\\zs[" .. label_group .. "]"
local pos = vim.fn.searchpos(p, "cnw")

-- not found, we're done
Expand Down

0 comments on commit 6102a7c

Please sign in to comment.