Double click sometime not select whole atomic range

Hi there,

In codemirror, when we double click a sequence of punctuation marks, they will be selected.

But when part of the punctuation marks is in atomic range, this also worked, then the select range will get a wrong location of endpoints.
Kapture 2023-05-15 at 11.29.14

Here is the demo: CodeMirror-selection-in-widget - CodeSandbox

This patch should help with this.

1 Like