a2f6efa5e1
If the preedit is in invisible state, the last preedit string that was sent around is already null, so there is no need to clear the preedit in that case. (Cherry-picked from commit 01775609525b12de752a2f7ebac88baee9b041d3)