Fix incorrect IME input window positioning when "multiline input + specific conditions" occur#45
Merged
jacob314 merged 5 commits intojacob314:masterfrom Jan 27, 2026
Merged
Conversation
More IME fixes Checkpoint. Cursor simplifications Remove enableImeCursor and move the cursor to the appropriate location without making the cursor be visible. Gemini CLI will continue to render its own cursor so there is no need to show the cursor as that introduces visual artifacts. Gemini CLI does however need the cursor position to be at the correct location so IME input works as expected. Fixes for incremental updates in non-alternate buffer mode and tests.
… spaces - Rename currentLineStartOffset to previousLineEndOffset for clearer semantics - Add early exit to avoid unnecessary iteration - Keep cursor at end of previous line instead of jumping to next line in gap area - Add comments for code clarity
Owner
|
Please resolve the merge conflicts then I'll take a look |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The issue occurs in multiline when the following two conditions are met:
The video of the issue is as follows.
bug.mp4
This issue only occurs in
examples/multi-input/multi-input.tsxand does not occur in Gemini-CLI.It doesn't seem to be a significant problem for use in GEMINI CLI.
The reproduction of the issue is as follows.
NODE_NO_WARNINGS=1 node --loader ts-node/esm examples/multi-input/index.tsSelect Korean - Dubeolsik input method, and type the following English characters based on the QWERTY keyboard layout.