From ee6ddbdf4a08a4de16a84fc9d1e913bea691dcdb Mon Sep 17 00:00:00 2001 From: borja Date: Tue, 28 Nov 2023 00:00:08 +0100 Subject: [PATCH] test find --- plugin/todoer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, "")