summaryrefslogtreecommitdiff
path: root/src/mbyte.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-15 22:56:49 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-15 22:56:49 +0200
commit6daeef1933be68055aabe1d55f8467d46a707753 (patch)
treec39230aa296e11d9ed34767d0c22285d3ae5c0e3 /src/mbyte.c
parent059db5c29ffef283a4b90bab9228708fa32e3dd2 (diff)
downloadvim-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.c2
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