summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/ecore_imf/ibus/ibus_imcontext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ecore_imf/ibus/ibus_imcontext.c b/src/modules/ecore_imf/ibus/ibus_imcontext.c
index 44f1b00241..67f22f9434 100644
--- a/src/modules/ecore_imf/ibus/ibus_imcontext.c
+++ b/src/modules/ecore_imf/ibus/ibus_imcontext.c
@@ -686,8 +686,8 @@ _ecore_imf_context_ibus_update_preedit_text_cb(IBusInputContext *ibuscontext EI
686 if (attr == NULL) 686 if (attr == NULL)
687 continue; 687 continue;
688 688
689 attr->start_index = utf8_offset_to_index(str, ibus_attr->start_index); 689 attr->start_index = utf8_offset_to_index(ibusimcontext->preedit_string, ibus_attr->start_index);
690 attr->end_index = utf8_offset_to_index(str, ibus_attr->end_index); 690 attr->end_index = utf8_offset_to_index(ibusimcontext->preedit_string, ibus_attr->end_index);
691 691
692 switch (ibus_attr->type) 692 switch (ibus_attr->type)
693 { 693 {