From e1c98f9dbb7c3f11d0a825070d4cb94a0e2a597c Mon Sep 17 00:00:00 2001 From: Shx Guo Date: Sat, 31 Jan 2026 00:03:34 +0800 Subject: [PATCH 1/2] Fix potential crash --- Tool/Sources/SuggestionBasic/EditorInformation.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tool/Sources/SuggestionBasic/EditorInformation.swift b/Tool/Sources/SuggestionBasic/EditorInformation.swift index ca243511..0dd15757 100644 --- a/Tool/Sources/SuggestionBasic/EditorInformation.swift +++ b/Tool/Sources/SuggestionBasic/EditorInformation.swift @@ -23,6 +23,7 @@ public struct EditorInformation: Sendable { public var lineAnnotations: [LineAnnotation] public var selectedContent: String { + guard !lines.isEmpty else { return "" } if let range = selections.first { if range.isEmpty { return "" } let startIndex = min( From 7b9ce866dfef6c82fc5a0502f6e8af4036f8a0d2 Mon Sep 17 00:00:00 2001 From: Shx Guo Date: Sat, 31 Jan 2026 00:08:24 +0800 Subject: [PATCH 2/2] Bump version --- Version.xcconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Version.xcconfig b/Version.xcconfig index 2f199135..c90ac07d 100644 --- a/Version.xcconfig +++ b/Version.xcconfig @@ -1,4 +1,4 @@ -APP_VERSION = 0.37.4 -APP_BUILD = 494 +APP_VERSION = 0.37.5 +APP_BUILD = 500 RELEASE_CHANNEL = RELEASE_NUMBER = 1