commit | 6daeef1933be68055aabe1d55f8467d46a707753 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Oct 15 22:56:49 2017 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Oct 15 22:56:49 2017 +0200 |
tree | c39230aa296e11d9ed34767d0c22285d3ae5c0e3 | |
parent | 059db5c29ffef283a4b90bab9228708fa32e3dd2 [diff] [blame] |
patch 8.0.1203: terminal window mistreats composing characters Problem: Terminal window mistreats composing characters. Solution: Count composing characters with the base character. (Ozaki Kiichi, closes #2195)
diff --git a/src/mbyte.c b/src/mbyte.c index fe56731..6cda0e7 100644 --- a/src/mbyte.c +++ b/src/mbyte.c
@@ -1402,6 +1402,8 @@ int utf_uint2cells(UINT32_T c) { + if (c >= 0x100 && utf_iscomposing((int)c)) + return 0; return utf_char2cells((int)c); } #endif