Maybe bug of delete atomic decoration

Hi there.

I hava a atomic decoration to mark special text(in example is got})

When I double click decoration, and press Backspace, The char } in marked text will be delete(with next char ,)
Kapture 2022-09-28 at 10.36.58

The decoration has not been delete as an atomic unit. Is this a bug?

here is the mini size demo: cool-shape-84nfdj - CodeSandbox
When I load standardKeymap → Backspace. the problem is appear

I agree, that should make sure the deleted region covers the entire atomic range. This patch fixes that.

1 Like

That’s cool, thanks~

And when you will release the bugfix version?

I’ve tagged @codemirror/commands 6.1.1 with this fix.

1 Like