Skip to content

Commit

Permalink
More stable caret placement during elision toggle.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyjko committed Feb 10, 2024
1 parent b2daf8a commit 8fad2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit/Caret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ export default class Caret {
space.replaceAll(ELISION_SYMBOL, '') +
code.substring(start, code.getLength()),
),
this.withPosition(this.position),
this.withPosition(this.position - 1),
];
else return undefined;
}
Expand Down

0 comments on commit 8fad2a2

Please sign in to comment.