Skip to content

Commit

Permalink
fix: 1293
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocs committed Jul 5, 2024
1 parent 28a4d43 commit f66ed98
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ export class NodePositionConvertToCursor {
this._selectionIterator(start, end, (start_sp, end_sp, isFirst, isLast, divide, line) => {
const { lineHeight, marginTop, asc } = line;
const { glyphGroup, st } = divide;
if (glyphGroup.length === 0) {
// The divide is empty, and no need to set selection.
// Handle the drawing which split the line, and the second divide is empty.
return;
}
const { x: startX, y: startY } = this._liquid;

let borderBoxPosition: IPosition;
Expand Down

0 comments on commit f66ed98

Please sign in to comment.