308
309
if (breakOffset <= lastBreakingOffset) {
311
>
const charCode = lineText.charCodeAt(lastBreakingOffset);
312
>
if (strings.isHighSurrogate(charCode)) {
313
// A surrogate pair must always be considered as a single unit, so it is never to be broken
314
breakOffset = lastBreakingOffset + 2;
315
breakOffsetVisibleColumn = lastBreakingOffsetVisibleColumn + 2;
317
>
breakOffset = lastBreakingOffset + 1;
318
>
breakOffsetVisibleColumn = lastBreakingOffsetVisibleColumn + computeCharWidth(charCode, lastBreakingOffsetVisibleColumn, tabSize, columnsForFullWidthChar);
319
>
}
320
>
}
321
322
lastBreakingOffset = breakOffset;