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) ) }