diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-07 06:44:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 06:44:29 +0800 |
commit | 09325845b9b6c9c3a61feef189c5b80094f51a5b (patch) | |
tree | 50dad8ea111a8b8cc19d23ae74398e55264470c6 /src | |
parent | 6cd643dbf9a17ec6700c1b015cb4ac202ec1b0b6 (diff) | |
download | rneovim-09325845b9b6c9c3a61feef189c5b80094f51a5b.tar.gz rneovim-09325845b9b6c9c3a61feef189c5b80094f51a5b.tar.bz2 rneovim-09325845b9b6c9c3a61feef189c5b80094f51a5b.zip |
vim-patch:9.0.0666: spacing-combining characters handled as composing (#20501)
Problem: Spacing-combining characters handled as composing, causing text to
take more space than expected.
Solution: Handle characters marked with "Mc" not as composing.
(closes vim/vim#11282
https://github.com/vim/vim/commit/7beaf6a720ddc7e2989c8831872bfb98ec78a65d
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/generators/gen_unicode_tables.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/generators/gen_unicode_tables.lua b/src/nvim/generators/gen_unicode_tables.lua index 36553f4649..9ad99c8029 100644 --- a/src/nvim/generators/gen_unicode_tables.lua +++ b/src/nvim/generators/gen_unicode_tables.lua @@ -153,7 +153,8 @@ local build_combining_table = function(ut_fp, dataprops) local start = -1 local end_ = -1 for _, p in ipairs(dataprops) do - if (({Mn=true, Mc=true, Me=true})[p[3]]) then + -- The 'Mc' property was removed, it does take up space. + if (({Mn=true, Me=true})[p[3]]) then local n = tonumber(p[1], 16) if start >= 0 and end_ + 1 == n then -- Continue with the same range. |