Mercurial > vim
comparison src/vim.h @ 12325:a7eca57d35ee v8.0.1042
patch 8.0.1042: without the syntax feature highlighting doesn't work
commit https://github.com/vim/vim/commit/9f45ccd1bf2d2de979d252fdd7e5c9eb3fa6cceb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 2 20:40:35 2017 +0200
patch 8.0.1042: without the syntax feature highlighting doesn't work
Problem: Without the syntax feature highlighting doesn't work.
Solution: Always use unsigned short to store attributes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Sep 2017 20:45:05 +0200 |
parents | 2a8890b80923 |
children | dfb8254aa735 |
comparison
equal
deleted
inserted
replaced
12324:fa16821a3a90 | 12325:a7eca57d35ee |
---|---|
433 | 433 |
434 /* | 434 /* |
435 * The characters and attributes cached for the screen. | 435 * The characters and attributes cached for the screen. |
436 */ | 436 */ |
437 typedef char_u schar_T; | 437 typedef char_u schar_T; |
438 #ifdef FEAT_SYN_HL | |
439 typedef unsigned short sattr_T; | 438 typedef unsigned short sattr_T; |
440 # define MAX_TYPENR 65535 | 439 #define MAX_TYPENR 65535 |
441 #else | |
442 typedef unsigned char sattr_T; | |
443 # define MAX_TYPENR 255 | |
444 #endif | |
445 | 440 |
446 /* | 441 /* |
447 * The u8char_T can hold one decoded UTF-8 character. | 442 * The u8char_T can hold one decoded UTF-8 character. |
448 * We normally use 32 bits now, since some Asian characters don't fit in 16 | 443 * We normally use 32 bits now, since some Asian characters don't fit in 16 |
449 * bits. u8char_T is only used for displaying, it could be 16 bits to save | 444 * bits. u8char_T is only used for displaying, it could be 16 bits to save |