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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user