Skip to content

Commit

Permalink
perf(compiler-core): simplify advancePositionWithMutation (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangying000 authored and yyx990803 committed Dec 30, 2019
1 parent 9996d7a commit ad2a0bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export function advancePositionWithMutation(
pos.column =
lastNewLinePos === -1
? pos.column + numberOfCharacters
: Math.max(1, numberOfCharacters - lastNewLinePos)
: numberOfCharacters - lastNewLinePos

return pos
}
Expand Down

0 comments on commit ad2a0bd

Please sign in to comment.