diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-15 22:56:49 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-15 22:56:49 +0200 |
commit | 6daeef1933be68055aabe1d55f8467d46a707753 (patch) | |
tree | c39230aa296e11d9ed34767d0c22285d3ae5c0e3 /src/mbyte.c | |
parent | 059db5c29ffef283a4b90bab9228708fa32e3dd2 (diff) | |
download | vim-git-6daeef1933be68055aabe1d55f8467d46a707753.tar.gz |
patch 8.0.1203: terminal window mistreats composing charactersv8.0.1203
Problem: Terminal window mistreats composing characters.
Solution: Count composing characters with the base character. (Ozaki Kiichi,
closes #2195)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index fe5673129..6cda0e793 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -1402,6 +1402,8 @@ static struct interval ambiguous[] = int utf_uint2cells(UINT32_T c) { + if (c >= 0x100 && utf_iscomposing((int)c)) + return 0; return utf_char2cells((int)c); } #endif |