summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-02 20:40:35 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-02 20:40:35 +0200
commit9f45ccd1bf2d2de979d252fdd7e5c9eb3fa6cceb (patch)
tree1f28818285180bb3b08d77aee3f36b2b4480e9c0
parente2e69e48134cbfdedea7802810932f8592705024 (diff)
patch 8.0.1042: without the syntax feature highlighting doesn't workv8.0.1042
Problem: Without the syntax feature highlighting doesn't work. Solution: Always use unsigned short to store attributes.
-rw-r--r--src/version.c2
-rw-r--r--src/vim.h7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/version.c b/src/version.c
index e59466762a..77620adc3f 100644
--- 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,
diff --git a/src/vim.h b/src/vim.h
index 77081e202a..93dc951fb3 100644
--- 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.