Mercurial > vim
comparison src/mbyte.c @ 12650:f58755eb453e v8.0.1203
patch 8.0.1203: terminal window mistreats composing characters
commit https://github.com/vim/vim/commit/6daeef1933be68055aabe1d55f8467d46a707753
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 15 22:56:49 2017 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 15 Oct 2017 23:00:04 +0200 |
parents | aa3f6d093f4b |
children | 351cf7c67bbe |
comparison
equal
deleted
inserted
replaced
12649:2fca3bfff76f | 12650:f58755eb453e |
---|---|
1400 * utf_char2cells() with different argument type for libvterm. | 1400 * utf_char2cells() with different argument type for libvterm. |
1401 */ | 1401 */ |
1402 int | 1402 int |
1403 utf_uint2cells(UINT32_T c) | 1403 utf_uint2cells(UINT32_T c) |
1404 { | 1404 { |
1405 if (c >= 0x100 && utf_iscomposing((int)c)) | |
1406 return 0; | |
1405 return utf_char2cells((int)c); | 1407 return utf_char2cells((int)c); |
1406 } | 1408 } |
1407 #endif | 1409 #endif |
1408 | 1410 |
1409 /* | 1411 /* |