diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-08-22 22:12:17 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-08-22 22:12:17 +0200 |
commit | 6d0826dfbba9880820d9ec221327e4250bbf6540 (patch) | |
tree | 4cc32379c4c21b3dfced4bc8339d8541188cf18f /src/proto | |
parent | 5830232c021102e47a4e6fc81857604e4a031ddf (diff) | |
download | vim-git-6d0826dfbba9880820d9ec221327e4250bbf6540.tar.gz |
patch 8.0.0985: libvterm has its own idea of character widthv8.0.0985
Problem: Libvterm has its own idea of character width.
Solution: Use the Vim functions for character width and composing to avoid a
mismatch. (idea by Yasuhiro Matsumoto)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/mbyte.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/mbyte.pro b/src/proto/mbyte.pro index 83bcadc69..b37064b8e 100644 --- a/src/proto/mbyte.pro +++ b/src/proto/mbyte.pro @@ -10,6 +10,7 @@ int latin_char2len(int c); int latin_char2bytes(int c, char_u *buf); int latin_ptr2len(char_u *p); int latin_ptr2len_len(char_u *p, int size); +int utf_uint2cells(uint32_t c); int utf_char2cells(int c); int latin_ptr2cells(char_u *p); int utf_ptr2cells(char_u *p); @@ -37,6 +38,7 @@ int utfc_ptr2len(char_u *p); int utfc_ptr2len_len(char_u *p, int size); int utf_char2len(int c); int utf_char2bytes(int c, char_u *buf); +int utf_iscomposing_uint(uint32_t c); int utf_iscomposing(int c); int utf_printable(int c); int utf_class(int c); |