forked from aniani/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: #13958 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
0c989e4a3a
commit
eac3fdcfa0
21
src/option.c
21
src/option.c
@@ -3269,27 +3269,6 @@ did_set_binary(optset_T *args)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if defined(FEAT_LINEBREAK) || defined(PROTO)
|
||||
/*
|
||||
* Called when the 'breakat' option changes value.
|
||||
*/
|
||||
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;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Process the updated 'buflisted' option value.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user