Mercurial > vim
changeset 24381:7b84cf514dd8 v8.2.2731
patch 8.2.2731: Mac: SF symbols are not displayed properly
Commit: https://github.com/vim/vim/commit/8dddc1f0e2e9eeb29fc59477b515bcd6bb1243ec
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 7 19:00:25 2021 +0200
patch 8.2.2731: Mac: SF symbols are not displayed properly
Problem: Mac: SF symbols are not displayed properly.
Solution: Add custom range to list of double-width characters. (Yee Cheng
Chin, closes #8077)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Apr 2021 19:15:03 +0200 |
parents | bfe16ffe8ebf |
children | ba12300088d4 |
files | src/mbyte.c src/version.c |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mbyte.c +++ b/src/mbyte.c @@ -1545,6 +1545,15 @@ utf_char2cells(int c) {0x1f6e9, 0x1f6e9}, {0x1f6f0, 0x1f6f0}, {0x1f6f3, 0x1f6f3} + +#ifdef MACOS_X + // Include SF Symbols characters, which should be rendered as + // double-width. All of them are in the Supplementary Private Use + // Area-B range. The exact range was determined by downloading the "SF + // Symbols" app from Apple, and then selecting all symbols, copying + // them out, and inspecting the unicode values of them. + , {0x100000, 0x100d7f} +#endif }; if (c >= 0x100)