diff src/terminal.c @ 13557:4911058c43eb v8.0.1652

patch 8.0.1652: term_dumpwrite() does not output composing characters commit https://github.com/vim/vim/commit/f06b0b6c8f85ea9c320f2be30b25ed084969c1e2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 29 17:22:24 2018 +0200 patch 8.0.1652: term_dumpwrite() does not output composing characters Problem: term_dumpwrite() does not output composing characters. Solution: Use the cell index.
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Mar 2018 17:30:06 +0200
parents 87a9c1be0ae3
children 4df23d9bad47
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -3573,7 +3573,7 @@ f_term_dumpwrite(typval_T *argvars, typv
 		    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);
 		    }
 		}