Skip to content

Commit

Permalink
patch 9.0.0666: spacing-combining characters handled as composing
Browse files Browse the repository at this point in the history
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 #11282
  • Loading branch information
brammool committed Oct 5, 2022
1 parent 0816f47 commit 7beaf6a
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 128 deletions.
3 changes: 2 additions & 1 deletion runtime/tools/unicode.vim
Expand Up @@ -158,7 +158,8 @@ func! BuildCombiningTable()
let end = -1
let ranges = []
for p in s:dataprops
if p[2] == 'Mn' || p[2] == 'Mc' || p[2] == 'Me'
" The 'Mc' property was removed, it does take up space.
if p[2] == 'Mn' || p[2] == 'Me'
let n = ('0x' . p[0]) + 0
if start >= 0 && end + 1 == n
" continue with same range.
Expand Down

0 comments on commit 7beaf6a

Please sign in to comment.