Skip to content

Commit

Permalink
fix: matchstr fails with error about passing a dictionary as a string…
Browse files Browse the repository at this point in the history
… when string is binary #23
  • Loading branch information
folke committed May 18, 2021
1 parent 0f6a87b commit ca2b794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/todo-comments/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function M.highlight(buf, first, last)
local ok, start, finish, kw = pcall(M.match, line, pattern)
-- HACK: redo without the comment pattern for now if we get an error
if not ok then
start, finish, kw = M.match(line)
ok, start, finish, kw = pcall(M.match, line)
end
local lnum = first + l - 1

Expand Down

0 comments on commit ca2b794

Please sign in to comment.