Skip to content

Commit 9f45ccd

Browse files
committed
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.
1 parent e2e69e4 commit 9f45ccd

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,8 @@ static char *(features[]) =
769769

770770
static int included_patches[] =
771771
{ /* Add new patch number below this line */
772+
/**/
773+
1042,
772774
/**/
773775
1041,
774776
/**/

src/vim.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -435,13 +435,8 @@ typedef off_t off_T;
435435
* The characters and attributes cached for the screen.
436436
*/
437437
typedef char_u schar_T;
438-
#ifdef FEAT_SYN_HL
439438
typedef unsigned short sattr_T;
440-
# define MAX_TYPENR 65535
441-
#else
442-
typedef unsigned char sattr_T;
443-
# define MAX_TYPENR 255
444-
#endif
439+
#define MAX_TYPENR 65535
445440

446441
/*
447442
* The u8char_T can hold one decoded UTF-8 character.

0 commit comments

Comments
 (0)