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]; }