mike-fabian / ibus-typing-booster

ibus-typing-booster is a completion input method for faster typing
https://mike-fabian.github.io/ibus-typing-booster/
Other
232 stars 16 forks source link

When committing with Return inside a preedit, database recording and pushed context is wrong #226

Closed mike-fabian closed 3 years ago

mike-fabian commented 3 years ago

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.