Tidy up new UTF-8 code and make it more generic.

This commit is contained in:
nicm
2020-05-25 18:19:29 +00:00
parent dc893405e1
commit 49ec074271
4 changed files with 154 additions and 164 deletions

View File

@ -2571,7 +2571,7 @@ window_copy_cellstring(const struct grid_line *gl, u_int px, size_t *size,
return (&gce->data.data);
}
utf8_get_big(gl->extddata[gce->offset].data, &ud);
utf8_to_data(gl->extddata[gce->offset].data, &ud);
*size = ud.size;
*allocated = 1;