changeset 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 fa16821a3a90
children fb7fc05de526
files src/version.c src/vim.h
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1042,
+/**/
     1041,
 /**/
     1040,
--- a/src/vim.h
+++ b/src/vim.h
@@ -435,13 +435,8 @@ typedef off_t off_T;
  * The characters and attributes cached for the screen.
  */
 typedef char_u schar_T;
-#ifdef FEAT_SYN_HL
 typedef unsigned short sattr_T;
-# define MAX_TYPENR 65535
-#else
-typedef unsigned char sattr_T;
-# define MAX_TYPENR 255
-#endif
+#define MAX_TYPENR 65535
 
 /*
  * The u8char_T can hold one decoded UTF-8 character.