diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-03 18:08:09 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-03 18:08:09 +0100 |
commit | eac3fdcfa0b54281c37ffb66b4d4e8d1072cca1c (patch) | |
tree | 5cae81a11d47036ff5759494686d3aee646eb331 /src/optionstr.c | |
parent | 0c989e4a3ae50085aa8c6bed5d6701760191bc1d (diff) |
patch 9.1.0074: did_set_breakat() should be in optionstr.cv9.1.0074
Problem: did_set_breakat() should be in optionstr.c as 'breakat' is a
string option.
Solution: Move did_set_breakat() to optionstr.c.
(zeertzjq)
closes: #13958
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/optionstr.c')
-rw-r--r-- | src/optionstr.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/optionstr.c b/src/optionstr.c index 2d809a3943..c049b3b6fc 100644 --- a/src/optionstr.c +++ b/src/optionstr.c @@ -1208,6 +1208,25 @@ expand_set_belloff(optexpand_T *args, int *numMatches, char_u ***matches) #if defined(FEAT_LINEBREAK) || defined(PROTO) /* + * The 'breakat' option is changed. + */ + char * +did_set_breakat(optset_T *args UNUSED) +{ + char_u *p; + int i; + + for (i = 0; i < 256; i++) + breakat_flags[i] = FALSE; + + if (p_breakat != NULL) + for (p = p_breakat; *p; p++) + breakat_flags[*p] = TRUE; + + return NULL; +} + +/* * The 'breakindentopt' option is changed. */ char * |