Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct IME position calculation with window padding (#4949)
This PR addresses two IME-related issues: 1. Fix IME position calculation with window padding, fixed #4933 - Add padding offset to IME position calculation to correctly position the IME window - This ensures IME window appears at the right position when `window-padding-x/window-padding-y` are set 2. Clear selection when IME input starts - Previously, when using CJK IME with text selected, the IME window would appear near the selection - Now it clears selection and shows IME window at cursor position - This matches the behavior of iTerm2 and Terminal.app ## Before https://github.com/user-attachments/assets/cd5c7b55-2083-40ce-a528-9a98898a6498 ## After https://github.com/user-attachments/assets/9f2c17c6-e885-45f3-9ab1-a9c3858690ec
- Loading branch information