1
0
forked from aniani/vim

patch 8.0.1652: term_dumpwrite() does not output composing characters

Problem:    term_dumpwrite() does not output composing characters.
Solution:   Use the cell index.
This commit is contained in:
Bram Moolenaar
2018-03-29 17:22:24 +02:00
parent 0751f51a5b
commit f06b0b6c8f
3 changed files with 25 additions and 1 deletions

View File

@@ -3573,7 +3573,7 @@ f_term_dumpwrite(typval_T *argvars, typval_T *rettv UNUSED)
for (i = 0; i < VTERM_MAX_CHARS_PER_CELL
&& cell.chars[i] != NUL; ++i)
{
len = utf_char2bytes(cell.chars[0], charbuf);
len = utf_char2bytes(cell.chars[i], charbuf);
fwrite(charbuf, len, 1, fd);
}
}