From d8fb9aee1dc8daf2f8fb17c8931c83c80ecea1e8 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Fri, 23 Sep 2022 19:31:45 +0800 Subject: [PATCH] ICB // Utilizing NSAttributedString.length. --- .../PopupCompositionBufferUI/ctlPopupCompositionBuffer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/UIModules/PopupCompositionBufferUI/ctlPopupCompositionBuffer.swift b/Source/Modules/UIModules/PopupCompositionBufferUI/ctlPopupCompositionBuffer.swift index 16824bc6..6e2376cc 100644 --- a/Source/Modules/UIModules/PopupCompositionBufferUI/ctlPopupCompositionBuffer.swift +++ b/Source/Modules/UIModules/PopupCompositionBufferUI/ctlPopupCompositionBuffer.swift @@ -75,7 +75,7 @@ public class ctlPopupCompositionBuffer: NSWindowController { if isTypingDirectionVertical { attrString.setAttributes( - verticalAttributes, range: NSRange(location: 0, length: attrString.string.utf16.count) + verticalAttributes, range: NSRange(location: 0, length: attrString.length) ) }