On Wed Apr 16 09:04:11 2025 +0000, Byeongsik Jeon wrote:
Yes. This is possible if we handle the empty WM_IME_COMPOSITION handling in the WM_IME_ENDCOMPOSITION part. As in d1f9aae5, the empty WM_IME_COMPOSITION is wparam==0x1b, lparam==0x1bf, but I left the code in because it was ambiguous. If ime_to_tascii_ex doesn't update 'compstr' for empty string, I think it should be fine for lparam==0x1lbf.
Hmm... Then maybe we should check for dwCompStrOffset instead of dwCompStrLen when sending WM_IME_STARTCOMPOSITION/WM_IME_ENDCOMPOSITION on lines 564 and 588?