diff --git a/lua/pretty-fold/util.lua b/lua/pretty-fold/util.lua index 986b36f..80583b6 100644 --- a/lua/pretty-fold/util.lua +++ b/lua/pretty-fold/util.lua @@ -75,7 +75,7 @@ function util.deep_pesc(ts) if type(s) == 'string' then escaped_ts[i] = vim.pesc(s) elseif type(s) == 'table' then - escaped_ts[i] = util.escape_lua_patterns(s) + escaped_ts[i] = util.deep_pesc(s) end end return escaped_ts