diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-24 18:24:58 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-24 18:24:58 +0100 |
commit | 6a08454b93784c92296d4c08456401cbaa74c9d5 (patch) | |
tree | d13c477a413868ceea0b8d366132df7473e6126a /runtime | |
parent | 5ca84ce4aa2832041f843e624c222bbc1f4d3e14 (diff) |
patch 7.4.1642v7.4.1642
Problem: Handling emoji characters as full width has problems with
backwards compatibility.
Solution: Only put characters in the 1f000 range in the emoji table.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/tools/unicode.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/tools/unicode.vim b/runtime/tools/unicode.vim index e0627b644d..88c4c79609 100644 --- a/runtime/tools/unicode.vim +++ b/runtime/tools/unicode.vim @@ -283,6 +283,12 @@ func! BuildEmojiTable(pattern, tableName) call add(alltokens, token) endif + " Characters below 1F000 may be considered single width traditionally, + " making them double width causes problems. + if first < 0x1f000 + continue + endif + " exclude characters that are in the "ambiguous" or "doublewidth" table for ambi in s:ambitable if first >= ambi[0] && first <= ambi[1] |