From e887ba01a572280c9ba31def9fbe2dcb1a8a3f00 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sat, 17 Feb 2024 16:19:05 +0800 Subject: [PATCH] CtlCandidateTDK // Patch another issue with reverse lookup. --- .../CandidateWindow/TDKCandidates/CtlCandidateTDK.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/CtlCandidateTDK.swift b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/CtlCandidateTDK.swift index 6ae91ef4..9920bd20 100644 --- a/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/CtlCandidateTDK.swift +++ b/Packages/vChewing_CandidateWindow/Sources/CandidateWindow/TDKCandidates/CtlCandidateTDK.swift @@ -126,9 +126,10 @@ public class CtlCandidateTDK: CtlCandidate, NSWindowDelegate { } reverseLookupResult = lookupResult.compactMap { $0 } } else { + reverseLookupResult = lookupResult.compactMap { $0 } // 如果不提供 UNICODE 碼位資料顯示的話,則在非多行多列模式下僅顯示一筆反查資料。 if !Self.thePool.isMatrix { - reverseLookupResult = [lookupResult.compactMap { $0 }.first].compactMap { $0 } + reverseLookupResult = [reverseLookupResult.first].compactMap { $0 } } } }