]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1582: style issue in vim9type.c and vim9generics.c v9.1.1582
authorChristian Brabandt <cb@256bit.org>
Tue, 22 Jul 2025 17:41:39 +0000 (19:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 22 Jul 2025 17:41:39 +0000 (19:41 +0200)
Problem:  style issue in vim9type.c and vim9generics.c
          (after v9.1.1581 and v9.1.1580)
Solution: Update Style and place opening brace on a new line.

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/version.c
src/vim9generics.c
src/vim9type.c

index 9a371ef2c01f8e50714fef74f197a3887659601f..68bd2f6390b82653e18f6b6d6b44758f360ba327 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1582,
 /**/
     1581,
 /**/
index fc45af73cd8225adfecb4d1fdb6c809ace56453c..9d01958760e7e1a79f4bcaa64a62027206c59404 100644 (file)
@@ -305,7 +305,8 @@ parse_generic_func_type_args(
        char    *ret_name = type_name(type_arg, &ret_free);
 
        // create space for the name and the new type
-       if (ga_grow(&gfatab->gfat_args, 1) == FAIL) {
+       if (ga_grow(&gfatab->gfat_args, 1) == FAIL)
+       {
            vim_free(ret_free);
            return NULL;
        }
index 1a20d9bd0dc9703ffe69da50ea1cfc8b5fe2551e..28997ab37b65be4257483879cf1bddc4c6557a8a 100644 (file)
@@ -1886,7 +1886,8 @@ parse_type_tuple(
     ret_type = alloc_tuple_type(typecount, type_gap);
     ret_type->tt_flags = flags;
     ret_type->tt_argcount = typecount;
-    if (tuple_type_add_types(ret_type, typecount, type_gap) == FAIL) {
+    if (tuple_type_add_types(ret_type, typecount, type_gap) == FAIL)
+    {
        ret_type = NULL;
        goto on_err;
     }