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:
@@ -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
|
||||
|
Reference in New Issue
Block a user