diff options
Diffstat (limited to 'subprojects/frontend/src/language/indentation.ts')
-rw-r--r-- | subprojects/frontend/src/language/indentation.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/frontend/src/language/indentation.ts b/subprojects/frontend/src/language/indentation.ts index 6d36ed3b..55dcd7f1 100644 --- a/subprojects/frontend/src/language/indentation.ts +++ b/subprojects/frontend/src/language/indentation.ts | |||
@@ -23,7 +23,7 @@ function findAlignmentAfterOpening(context: TreeIndentContext): number | null { | |||
23 | const lineEnd = simulatedBreak == null || simulatedBreak <= openingLine.from | 23 | const lineEnd = simulatedBreak == null || simulatedBreak <= openingLine.from |
24 | ? openingLine.to | 24 | ? openingLine.to |
25 | : Math.min(openingLine.to, simulatedBreak); | 25 | : Math.min(openingLine.to, simulatedBreak); |
26 | const { cursor } = openingToken; | 26 | const cursor = openingToken.cursor(); |
27 | while (cursor.next() && cursor.from < lineEnd) { | 27 | while (cursor.next() && cursor.from < lineEnd) { |
28 | if (!cursor.type.isSkipped) { | 28 | if (!cursor.type.isSkipped) { |
29 | return cursor.from; | 29 | return cursor.from; |