This commit is contained in:
@@ -950,8 +950,7 @@ app_editor_set (const char *text)
|
||||
|
||||
struct utf8_iter iter = utf8_iter_make (text);
|
||||
int32_t codepoint = 0;
|
||||
size_t codepoint_len = 0;
|
||||
while ((codepoint = utf8_iter_next (&iter, &codepoint_len)) >= 0)
|
||||
while ((codepoint = utf8_iter_next (&iter, NULL)) >= 0)
|
||||
app_editor_insert (codepoint);
|
||||
}
|
||||
|
||||
@@ -2291,8 +2290,7 @@ app_on_clipboard_paste (const char *text)
|
||||
|
||||
struct utf8_iter iter = utf8_iter_make (text);
|
||||
int32_t codepoint = 0;
|
||||
size_t codepoint_len = 0;
|
||||
while ((codepoint = utf8_iter_next (&iter, &codepoint_len)) >= 0)
|
||||
while ((codepoint = utf8_iter_next (&iter, NULL)) >= 0)
|
||||
app_editor_insert (codepoint);
|
||||
xui_invalidate ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user