summaryrefslogtreecommitdiff
path: root/src/spell.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/spell.h')
-rw-r--r--src/spell.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/spell.h b/src/spell.h
index 4c44b546a..49ec0601e 100644
--- a/src/spell.h
+++ b/src/spell.h
@@ -34,6 +34,8 @@
byte, thus it can't be above 255.
Must be >= PFD_NOTSPECIAL. */
+#define MAXREGIONS 8 /* Number of regions supported. */
+
/* 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? */
#if VIM_SIZEOF_INT > 3
@@ -80,7 +82,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 */