#endif
if (context_scim->impl->input_resource == INPUT_RESOURCE_REMOTE && input_res == INPUT_RESOURCE_LOCAL) {
- WideString wstr = context_scim->impl->preedit_string;
-
if (context_scim->impl->need_commit_preedit) {
+ WideString wstr = context_scim->impl->preedit_string;
_hide_preedit_string (context_scim->id, false);
wsc_context_commit_string (context_scim, utf8_wcstombs (wstr).c_str ());
+
+ context_scim->impl->need_commit_preedit = false;
+ context_scim->impl->preedit_string.clear ();
}
if (_resource_check_timer)
return;
if ((!context_scim->impl->init_remote_surrounding_text || strcmp (conv_text, text) != 0 || context_scim->impl->cursor_pos != cursor)) {
- LOGD("remote surrounding text : %s\n", text);
+ SECURE_LOGD("remote surrounding text : \"%s\"\n", text);
context_scim->impl->surrounding_text = utf8_mbstowcs (String (text));
context_scim->impl->cursor_pos = cursor;
}
check_input_resource (ic, INPUT_RESOURCE_REMOTE);
- ic->impl->need_commit_preedit = false;
- ic->impl->preedit_string.clear ();
-
if (ic->impl->panel_layout == ECORE_IMF_INPUT_PANEL_LAYOUT_URL)
wsc_context_delete_surrounding (ic, -ic->impl->cursor_pos, ic->impl->surrounding_text.length ());
} else {