ultimate-autopair.nvim icon indicating copy to clipboard operation
ultimate-autopair.nvim copied to clipboard

[BUG] Wrong behavior when deleting asterisk in makdown files

Open Bekaboo opened this issue 6 months ago • 1 comments

Let | be the cursor, in the following case pressing backspace will delete two asterisks in front of the cursor in markdown files, causing unbalanced italic markers:

**|** --> press backspace --> |**

Expected behavior: delete ** pair around curosr: *|*

Plugin config:

require('ultimate-autopair').setup({
  {
    '*',
    '*',
    ft = { 'markdown' },
    disable_start = true,
    disable_end = true,
  },
})

Bekaboo avatar Feb 15 '24 16:02 Bekaboo