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

Commit: 
https://github.com/vim/vim/commit/eac3fdcfa0b54281c37ffb66b4d4e8d1072cca1c
Author: zeertzjq <[email protected]>
Date:   Sat Feb 3 18:08:09 2024 +0100

    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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/option.c b/src/option.c
index 92ed1ec2a..f0e77270a 100644
--- a/src/option.c
+++ b/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.
  */
diff --git a/src/optionstr.c b/src/optionstr.c
index 2d809a394..c049b3b6f 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -1207,6 +1207,25 @@ expand_set_belloff(optexpand_T *args, int *numMatches, 
char_u ***matches)
 }
 
 #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.
  */
diff --git a/src/proto/option.pro b/src/proto/option.pro
index effa81315..be7ee959c 100644
--- a/src/proto/option.pro
+++ b/src/proto/option.pro
@@ -29,7 +29,6 @@ char *did_set_autochdir(optset_T *args);
 char *did_set_ballooneval(optset_T *args);
 char *did_set_balloonevalterm(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_cmdheight(optset_T *args);
 char *did_set_compatible(optset_T *args);
diff --git a/src/proto/optionstr.pro b/src/proto/optionstr.pro
index cfd1982d1..340ffc428 100644
--- a/src/proto/optionstr.pro
+++ b/src/proto/optionstr.pro
@@ -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_belloff(optset_T *args);
 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);
 int expand_set_breakindentopt(optexpand_T *args, int *numMatches, char_u 
***matches);
 char *did_set_browsedir(optset_T *args);
diff --git a/src/version.c b/src/version.c
index 0dfa2d8e3..7dca96a6b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    74,
 /**/
     73,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rWJbc-00BY0f-5A%40256bit.org.

Raspunde prin e-mail lui