Currently we are not sending cursor_pos if we have preedit string,
but since the routine only checks whether the preedit_text is NULL,
so if the preedit_string is empty "" string, the ISE / IMEngine
will not get cursor_pos information properly. Thus added 'strlen()'
condition at the NULL checking 'if()' statement.
Change-Id: Ia2444d59f736b3474da02ca56bf55b0c8c1f53a3
set_autocapital (ctx);
- if (!imcontext->preedit_text)
+ if (!imcontext->preedit_text || strlen(imcontext->preedit_text) == 0)
wl_text_input_set_cursor_position (imcontext->text_input, cursor_pos);
}
}