Skip to content

Commit 0f79991

Browse files
fix: correct lineStartCols property reference in multiline-input
- Fixed incorrect property name reference at line 804 - All references use correct lineStartCols (not lineStarts) - Resolves TypeScript compilation errors
1 parent 77f1bd0 commit 0f79991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/components/multiline-input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export const MultilineInput = forwardRef<
275275
? Math.max(
276276
0,
277277
lineInfo.lineStartCols.findLastIndex(
278-
(lineStart) => lineStart <= cursorPosition,
278+
(lineStart: number) => lineStart <= cursorPosition,
279279
),
280280
)
281281
: 0
@@ -803,7 +803,7 @@ export const MultilineInput = forwardRef<
803803
// Fall back to logical line boundaries if visual info is unavailable
804804
const lineStarts = currentLineInfo?.lineStartCols ?? []
805805
const visualLineIndex = lineStarts.findLastIndex(
806-
(start) => start <= cursorPosition,
806+
(start: number) => start <= cursorPosition,
807807
)
808808
const visualLineStart = visualLineIndex >= 0
809809
? lineStarts[visualLineIndex]

0 commit comments

Comments
 (0)