ime: store wchar version of pre-edit string in terminal struct

This commit is contained in:
Daniel Eklöf 2020-12-06 12:17:52 +01:00
parent 7c420004fb
commit 194fbff883
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 8 additions and 4 deletions

View file

@ -2819,7 +2819,9 @@ term_ime_reset(struct terminal *term)
{
#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
if (term->ime.preedit.cells != NULL) {
free(term->ime.preedit.text);
free(term->ime.preedit.cells);
term->ime.preedit.text = NULL;
term->ime.preedit.cells = NULL;
term->ime.preedit.count = 0;
}