check_input_resource (ic, INPUT_RESOURCE_REMOTE);
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 ());
+ wsc_context_delete_surrounding (ic, INT_MIN/2, INT_MAX);
wsc_context_commit_string (ic, utf8_wcstombs (wstr).c_str ());
ic->impl->need_commit_preedit = false;
ic->impl->preedit_caret = str.length ();
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 ());
+ wsc_context_delete_surrounding (ic, INT_MIN/2, INT_MAX);
wsc_context_send_preedit_string (ic);
} else {