diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-10 12:21:49 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-10 12:35:38 -0400 |
commit | efbf70600c3ce7cb9f707e3228b7099c46478f43 (patch) | |
tree | 293b1757ce19fe16d21ac3891613e0331e954937 /src/nvim/spell_defs.h | |
parent | 2841e89cf179e692b10896a12fe5d9c722632463 (diff) | |
download | rneovim-efbf70600c3ce7cb9f707e3228b7099c46478f43.tar.gz rneovim-efbf70600c3ce7cb9f707e3228b7099c46478f43.tar.bz2 rneovim-efbf70600c3ce7cb9f707e3228b7099c46478f43.zip |
vim-patch:8.0.1490: number of spell regions is spread out through the code
Problem: Number of spell regions is spread out through the code.
Solution: Define MAXREGIONS.
https://github.com/vim/vim/commit/2993ac5fce5450428322ce43aaa5e643e6994443
Diffstat (limited to 'src/nvim/spell_defs.h')
-rw-r--r-- | src/nvim/spell_defs.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/spell_defs.h b/src/nvim/spell_defs.h index ddd54c724e..e83b21b219 100644 --- a/src/nvim/spell_defs.h +++ b/src/nvim/spell_defs.h @@ -13,6 +13,9 @@ // Some places assume a word length fits in a // byte, thus it can't be above 255. +// Number of regions supported. +#define MAXREGIONS 8 + // Type used for indexes in the word tree need to be at least 4 bytes. If int // is 8 bytes we could use something smaller, but what? typedef int idx_T; @@ -124,7 +127,8 @@ struct slang_S { char_u *sl_info; // infotext string or NULL - char_u sl_regions[17]; // table with up to 8 region names plus NUL + char_u sl_regions[MAXREGIONS * 2 + 1]; + // table with up to 8 region names plus NUL char_u *sl_midword; // MIDWORD string or NULL |