1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2017-10-15 22:56:49 +02:00
parent 059db5c29f
commit 6daeef1933
4 changed files with 74 additions and 6 deletions

View File

@@ -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