We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 13563e1 + 9c98e1c commit bff8a46Copy full SHA for bff8a46
1 file changed
src/editor-model/model-private.ts
@@ -933,11 +933,11 @@ function atomIsInRange(
933
const firstChild = includeFirstAtoms
934
? atom.firstChild
935
: firstNonFirstChild(atom);
936
- if (!firstChild) return false;
+ if (!firstChild) return true;
937
const lastChild = includeFirstAtoms
938
? atom.lastChild
939
: lastNonFirstChild(atom);
940
- if (!lastChild) return false;
+ if (!lastChild) return true;
941
942
const firstOffset = model.offsetOf(firstChild);
943
if (firstOffset >= first && firstOffset <= last) {
0 commit comments