Sethu provided the following reproducer:
"Open gedit blank
page, type in with ta-lk-renganathan via ibus any characters. Every
entry is seen with back lit (in predit mode) till comit. Now erase
every thing and from the first point of the page type in some
sequences that involve complex rendering. for example "nfh" (for கொ) ,
"fp" (for கி ). They don't show up till after comit. (Can also choose
not to embed predit cage in ibus-setup options and see the problem
happening in the predit cage)"
This sounds very much like the bug that you fixed in the
I created a patch, attached, and Sethu has already tested and found it
fixes the problem.