selection bounds are not re-calculated with IM preedit text
Steps to reproduce
(Original bug https://github.com/ibus/ibus/issues/2013)
- Whole the text is selected and the cursor position is the first when
Ctrl-a
key is typed onGtkTextView
.
- Type a preedit text with
IBus
Current behavior
GtkTextView
get the preedit text with gtk_im_context_get_preedit_string()
draws the preedit text and outputed text but the position of the selection bounds is not re-calculated.
I use ibus-typing-booster
in this case.
Expected outcome
The selection bounds are also shifted with the preedit text.
Version information
gtk 3.22
Additional information
The cursor position is the end when Ctrl-a
key is typed on GtkEntry so the selection bounds don't have to be re-calculated and the problem does not happen. But when the text is selected with Shift-Left
on GtkEntry, the problem happens in GtkEntry too.