diff --git a/plugin/todoer.lua b/plugin/todoer.lua index 9b270f3..7eb210e 100644 --- a/plugin/todoer.lua +++ b/plugin/todoer.lua @@ -85,7 +85,7 @@ local function remove_todo() local line = vim.api.nvim_get_current_line() local index, spaces = string.find(line, "^%s*") - if string.match(line, openpattern) or string.match(line, closedpattern) then + if string.find(line, openpattern) or string.find(line, closedpattern) then print("encontrado") line = string.gsub(line, openpattern, "") line = string.gsub(line, closedpattern, "")