summaryrefslogtreecommitdiffstats
path: root/src/optiondefs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-10 21:47:00 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-10 21:47:00 +0200
commit362b44bd4aa87a2aef0f8fd5a28d68dd09a7d909 (patch)
treeb3fa3018fe6a580e84e61b69c13d35aa2c193c59 /src/optiondefs.h
parentbe5ee8686a50acf07b823bd293f9c765e533d213 (diff)
patch 8.2.0953: spell checking doesn't work for CamelCased wordsv8.2.0953
Problem: Spell checking doesn't work for CamelCased words. Solution: Add the "camel" value in the new option 'spelloptions'. (closes #1235)
Diffstat (limited to 'src/optiondefs.h')
-rw-r--r--src/optiondefs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/optiondefs.h b/src/optiondefs.h
index 571a3af5e2..f1f1af3090 100644
--- a/src/optiondefs.h
+++ b/src/optiondefs.h
@@ -129,6 +129,7 @@
# define PV_SPC OPT_BUF(BV_SPC)
# define PV_SPF OPT_BUF(BV_SPF)
# define PV_SPL OPT_BUF(BV_SPL)
+# define PV_SPO OPT_BUF(BV_SPO)
#endif
#define PV_STS OPT_BUF(BV_STS)
#ifdef FEAT_SEARCHPATH
@@ -2398,6 +2399,16 @@ static struct vimoption options[] =
{(char_u *)0L, (char_u *)0L}
#endif
SCTX_INIT},
+ {"spelloptions", "spo", P_STRING|P_ALLOCED|P_VI_DEF
+ |P_ONECOMMA|P_NODUP|P_RBUF,
+#ifdef FEAT_SPELL
+ (char_u *)&p_spo, PV_SPO,
+ {(char_u *)"", (char_u *)0L}
+#else
+ (char_u *)NULL, PV_NONE,
+ {(char_u *)0L, (char_u *)0L}
+#endif
+ SCTX_INIT},
{"spellsuggest", "sps", P_STRING|P_VI_DEF|P_EXPAND|P_SECURE|P_ONECOMMA,
#ifdef FEAT_SPELL
(char_u *)&p_sps, PV_NONE,