diff --git a/packages/compiler-core/src/utils.ts b/packages/compiler-core/src/utils.ts index 69725085..3060c1c1 100644 --- a/packages/compiler-core/src/utils.ts +++ b/packages/compiler-core/src/utils.ts @@ -149,7 +149,7 @@ export function advancePositionWithMutation( pos.column = lastNewLinePos === -1 ? pos.column + numberOfCharacters - : Math.max(1, numberOfCharacters - lastNewLinePos) + : numberOfCharacters - lastNewLinePos return pos }