0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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:
zeertzjq 2024-02-03 18:08:09 +01:00 committed by Christian Brabandt
parent 0c989e4a3a
commit eac3fdcfa0
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
5 changed files with 22 additions and 22 deletions

View File

@ -3269,27 +3269,6 @@ did_set_binary(optset_T *args)
return NULL; 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. * Process the updated 'buflisted' option value.
*/ */

View File

@ -1207,6 +1207,25 @@ expand_set_belloff(optexpand_T *args, int *numMatches, char_u ***matches)
} }
#if defined(FEAT_LINEBREAK) || defined(PROTO) #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. * The 'breakindentopt' option is changed.
*/ */

View File

@ -29,7 +29,6 @@ char *did_set_autochdir(optset_T *args);
char *did_set_ballooneval(optset_T *args); char *did_set_ballooneval(optset_T *args);
char *did_set_balloonevalterm(optset_T *args); char *did_set_balloonevalterm(optset_T *args);
char *did_set_binary(optset_T *args); char *did_set_binary(optset_T *args);
char *did_set_breakat(optset_T *args);
char *did_set_buflisted(optset_T *args); char *did_set_buflisted(optset_T *args);
char *did_set_cmdheight(optset_T *args); char *did_set_cmdheight(optset_T *args);
char *did_set_compatible(optset_T *args); char *did_set_compatible(optset_T *args);

View File

@ -20,6 +20,7 @@ int expand_set_backupcopy(optexpand_T *args, int *numMatches, char_u ***matches)
char *did_set_backupext_or_patchmode(optset_T *args); char *did_set_backupext_or_patchmode(optset_T *args);
char *did_set_belloff(optset_T *args); char *did_set_belloff(optset_T *args);
int expand_set_belloff(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_belloff(optexpand_T *args, int *numMatches, char_u ***matches);
char *did_set_breakat(optset_T *args);
char *did_set_breakindentopt(optset_T *args); char *did_set_breakindentopt(optset_T *args);
int expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u ***matches); int expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u ***matches);
char *did_set_browsedir(optset_T *args); char *did_set_browsedir(optset_T *args);

View File

@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
74,
/**/ /**/
73, 73,
/**/ /**/