1
0
forked from aniani/vim

patch 7.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.
This commit is contained in:
Bram Moolenaar
2016-03-24 18:24:58 +01:00
parent 5ca84ce4aa
commit 6a08454b93
3 changed files with 8 additions and 58 deletions

View File

@@ -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]