Skip to content

Commit 090a0e0

Browse files
committed
Address status bar fallback length
1 parent bb6aed3 commit 090a0e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CodeEdit/Features/StatusBar/Views/StatusBarItems/StatusBarCursorPositionLabel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ struct StatusBarCursorPositionLabel: View {
132132
// When there's a single cursor, display the line and column.
133133
if cursorPositions[0].start.line <= 0 || cursorPositions[0].start.column <= 0 {
134134
if cursorPositions[0].range != .notFound && cursorPositions[0].range.location > 0 {
135-
return "Char: \(cursorPositions[0].range.location) Len: 0"
135+
return "Char: \(cursorPositions[0].range.location) Len: \(cursorPositions[0].range.length)"
136136
}
137137
return "Line: 1 Col: 1"
138138
}

0 commit comments

Comments
 (0)