diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-10-05 18:03:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-05 18:03:00 +0100 |
commit | 7beaf6a720ddc7e2989c8831872bfb98ec78a65d (patch) | |
tree | 49168ee7e59dcf856ccc4df3ce3ac5e4b2d95331 /runtime/tools | |
parent | 0816f473ab2f6cf7d8311c0f97371cada7f20d18 (diff) |
patch 9.0.0666: spacing-combining characters handled as composingv9.0.0666
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
Diffstat (limited to 'runtime/tools')
-rw-r--r-- | runtime/tools/unicode.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/tools/unicode.vim b/runtime/tools/unicode.vim index aa260e6ea5..630a581996 100644 --- a/runtime/tools/unicode.vim +++ b/runtime/tools/unicode.vim @@ -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. |