I changed the implementation of how to commit when Return or KP_Enter is typed inside a preëdit.
The new implementation is indeed more reliable but it puts the wrong text (whole word without the Return) into the database
and also pushes the whole word on the remembered context stack.
The parts to the left and to the right of the cursor should be recorded separately into the database.
And only the word to the left of the cursor should be pushed on the remembered context stack.
Because of this problem
https://github.com/mike-fabian/ibus-typing-booster/issues/222
I changed the implementation of how to commit when Return or KP_Enter is typed inside a preëdit.
The new implementation is indeed more reliable but it puts the wrong text (whole word without the Return) into the database and also pushes the whole word on the remembered context stack.
The parts to the left and to the right of the cursor should be recorded separately into the database.
And only the word to the left of the cursor should be pushed on the remembered context stack.