From f06b0b6c8f85ea9c320f2be30b25ed084969c1e2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 29 Mar 2018 17:22:24 +0200 Subject: patch 8.0.1652: term_dumpwrite() does not output composing characters Problem: term_dumpwrite() does not output composing characters. Solution: Use the cell index. --- src/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/terminal.c') diff --git a/src/terminal.c b/src/terminal.c index 5875af6e6..b60799d7f 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -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); } } -- cgit v1.2.1