Skip to content

Commit

Permalink
patch 8.0.1042: without the syntax feature highlighting doesn't work
Browse files Browse the repository at this point in the history
Problem:    Without the syntax feature highlighting doesn't work.
Solution:   Always use unsigned short to store attributes.
  • Loading branch information
brammool committed Sep 2, 2017
1 parent e2e69e4 commit 9f45ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -769,6 +769,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1042,
/**/ /**/
1041, 1041,
/**/ /**/
Expand Down
7 changes: 1 addition & 6 deletions src/vim.h
Expand Up @@ -435,13 +435,8 @@ typedef off_t off_T;
* The characters and attributes cached for the screen. * The characters and attributes cached for the screen.
*/ */
typedef char_u schar_T; typedef char_u schar_T;
#ifdef FEAT_SYN_HL
typedef unsigned short sattr_T; typedef unsigned short sattr_T;
# define MAX_TYPENR 65535 #define MAX_TYPENR 65535
#else
typedef unsigned char sattr_T;
# define MAX_TYPENR 255
#endif


/* /*
* The u8char_T can hold one decoded UTF-8 character. * The u8char_T can hold one decoded UTF-8 character.
Expand Down

0 comments on commit 9f45ccd

Please sign in to comment.