switch (style)
{
case WL_TEXT_INPUT_PREEDIT_STYLE_DEFAULT:
- attr->preedit_type = ECORE_IMF_PREEDIT_TYPE_SUB1;
+ attr->preedit_type = ECORE_IMF_PREEDIT_TYPE_NONE;
break;
case WL_TEXT_INPUT_PREEDIT_STYLE_UNDERLINE:
attr->preedit_type = ECORE_IMF_PREEDIT_TYPE_SUB1;
i != wsc_ctx->impl->preedit_attrlist.end (); ++i) {
start_index = i->get_start ();
end_index = i->get_end ();
- if (end_index <= wlen && start_index < end_index && i->get_type () != SCIM_ATTR_DECORATE_NONE) {
+ if (end_index <= wlen && start_index < end_index) {
start_index = g_utf8_offset_to_pointer (mbs.c_str (), i->get_start ()) - mbs.c_str ();
end_index = g_utf8_offset_to_pointer (mbs.c_str (), i->get_end ()) - mbs.c_str ();
if (i->get_type () == SCIM_ATTR_DECORATE) {
break;
}
- if (preedit_style)
- wl_input_method_context_preedit_styling (wsc_ctx->im_ctx,
- start_index,
- end_index,
- preedit_style);
+ wl_input_method_context_preedit_styling (wsc_ctx->im_ctx,
+ start_index,
+ end_index,
+ preedit_style);
+
switch (i->get_value ())
{
+ case SCIM_ATTR_DECORATE_NONE:
case SCIM_ATTR_DECORATE_UNDERLINE:
case SCIM_ATTR_DECORATE_REVERSE:
case SCIM_ATTR_DECORATE_HIGHLIGHT: