diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-04 06:43:19 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-02-04 06:46:15 +0800 |
commit | 80d7e7e5bf3a8a64d7fe1bcd76cceadd0bc4fa9a (patch) | |
tree | 060bcb30a4723e6a7285899970222f8d22144f57 /src/nvim/option.c | |
parent | 60701f4fff8a45956f74df429b4361447ffe7f3d (diff) | |
download | rneovim-80d7e7e5bf3a8a64d7fe1bcd76cceadd0bc4fa9a.tar.gz rneovim-80d7e7e5bf3a8a64d7fe1bcd76cceadd0bc4fa9a.tar.bz2 rneovim-80d7e7e5bf3a8a64d7fe1bcd76cceadd0bc4fa9a.zip |
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
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r-- | src/nvim/option.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c index 43d63b97f1..db013b460e 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -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) { |