summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-03-29 17:22:24 +0200
committerBram Moolenaar <Bram@vim.org>2018-03-29 17:22:24 +0200
commitf06b0b6c8f85ea9c320f2be30b25ed084969c1e2 (patch)
tree96efb9e8505b7eee64c6b3ea57ba55d83be50efc /src/terminal.c
parent0751f51a5b428805a8c1e9fe529693d032bec991 (diff)
downloadvim-git-f06b0b6c8f85ea9c320f2be30b25ed084969c1e2.tar.gz
patch 8.0.1652: term_dumpwrite() does not output composing charactersv8.0.1652
Problem: term_dumpwrite() does not output composing characters. Solution: Use the cell index.
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}