mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
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
eac3fdcfa0
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user