Pass column and rule information to :with_del callback

This commit is contained in:
Michael Budde 2022-08-03 12:30:06 +02:00 committed by windwp
parent cc8f7569cc
commit 8f7f682caa

View File

@ -363,10 +363,12 @@ local autopairs_delete = function(bufnr, key)
and utils.compare(rule.end_pair, next_char, rule.is_regex)
and rule:can_del({
ts_node = M.state.ts_node,
rule = rule,
bufnr = bufnr,
prev_char = prev_char,
next_char = next_char,
line = line,
col = col,
})
then
local input = ''