Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
13556:b1810bf15dfc | 13557:4911058c43eb |
---|---|
3571 int len; | 3571 int len; |
3572 | 3572 |
3573 for (i = 0; i < VTERM_MAX_CHARS_PER_CELL | 3573 for (i = 0; i < VTERM_MAX_CHARS_PER_CELL |
3574 && cell.chars[i] != NUL; ++i) | 3574 && cell.chars[i] != NUL; ++i) |
3575 { | 3575 { |
3576 len = utf_char2bytes(cell.chars[0], charbuf); | 3576 len = utf_char2bytes(cell.chars[i], charbuf); |
3577 fwrite(charbuf, len, 1, fd); | 3577 fwrite(charbuf, len, 1, fd); |
3578 } | 3578 } |
3579 } | 3579 } |
3580 | 3580 |
3581 /* When only the characters differ we don't write anything, the | 3581 /* When only the characters differ we don't write anything, the |