vim-patch:9.1.0074: did_set_breakat() should be in optionstr.c

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: vim/vim#13958

https://github.com/vim/vim/commit/eac3fdcfa0b54281c37ffb66b4d4e8d1072cca1c
This commit is contained in:
zeertzjq committed 2024-02-04 06:46:15 +08:00
1 parent 60701f4fff
commit 80d7e7e5bf
2 files changed
+16 -16

No files matched your search

-16
View File
@@ -2006,22 +2006,6 @@ static const char *did_set_binary(optset_T *args)
return NULL;
}
/// Called when the 'breakat' option changes value.
static const char *did_set_breakat(optset_T *args FUNC_ATTR_UNUSED)
{
for (int i = 0; i < 256; i++) {
breakat_flags[i] = false;
}
if (p_breakat != NULL) {
for (char *p = p_breakat; *p; p++) {
breakat_flags[(uint8_t)(*p)] = true;
}
}
return NULL;
}
/// Process the updated 'buflisted' option value.
static const char *did_set_buflisted(optset_T *args)
{
+16
View File
@@ -797,6 +797,22 @@ int expand_set_belloff(optexpand_T *args, int *numMatches, char ***matches)
matches);
}
/// The 'breakat' option is changed.
const char *did_set_breakat(optset_T *args FUNC_ATTR_UNUSED)
{
for (int i = 0; i < 256; i++) {
breakat_flags[i] = false;
}
if (p_breakat != NULL) {
for (char *p = p_breakat; *p; p++) {
breakat_flags[(uint8_t)(*p)] = true;
}
}
return NULL;
}
/// The 'breakindentopt' option is changed.
const char *did_set_breakindentopt(optset_T *args)
{