From 75dc93a2ce1df79754cf0b972fe18f6456df23c2 Mon Sep 17 00:00:00 2001 From: zonble Date: Fri, 28 Jan 2022 17:04:07 +0800 Subject: [PATCH] Fixes the position of the tooltip. --- Source/InputMethodController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/InputMethodController.mm b/Source/InputMethodController.mm index 2ed9fe72..462ed0f9 100644 --- a/Source/InputMethodController.mm +++ b/Source/InputMethodController.mm @@ -393,7 +393,7 @@ static inline NSString *LocalizationNotNeeded(NSString *s) { gCurrentCandidateController.visible = NO; if (state.tooltip.length) { - [self _showTooltip:state.tooltip composingBuffer:state.composingBuffer cursorIndex:cursorIndex client:client]; + [self _showTooltip:state.tooltip composingBuffer:state.composingBuffer cursorIndex:state.markerIndex client:client]; } else { [self _hideTooltip]; }