mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 13:56:05 +00:00
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
7beaf6a720
This commit is contained in:
@@ -153,7 +153,8 @@ local build_combining_table = function(ut_fp, dataprops)
|
|||||||
local start = -1
|
local start = -1
|
||||||
local end_ = -1
|
local end_ = -1
|
||||||
for _, p in ipairs(dataprops) do
|
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)
|
local n = tonumber(p[1], 16)
|
||||||
if start >= 0 and end_ + 1 == n then
|
if start >= 0 and end_ + 1 == n then
|
||||||
-- Continue with the same range.
|
-- Continue with the same range.
|
||||||
|
Reference in New Issue
Block a user