Commit: patch 9.1.1117: there are a few minor style issues

7 views
Skip to first unread message

Christian Brabandt

unread,
Feb 16, 2025, 10:45:13 AM2/16/25
to vim...@googlegroups.com
patch 9.1.1117: there are a few minor style issues

Commit: https://github.com/vim/vim/commit/5887cce1d71bd249468f955f99e8e75904acea22
Author: Hirohito Higashi <h.eas...@gmail.com>
Date: Sun Feb 16 16:34:30 2025 +0100

patch 9.1.1117: there are a few minor style issues

Problem: there are a few minor style issues
Solution: fix the issues (Hirohito Higashi)

closes: #16646

Signed-off-by: Hirohito Higashi <h.eas...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/version.c b/src/version.c
index 19968a66d..22047afd8 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 */
+/**/
+ 1117,
/**/
1116,
/**/
diff --git a/src/vim9class.c b/src/vim9class.c
index 82205365c..b5e3a13be 100644
--- a/src/vim9class.c
+++ b/src/vim9class.c
@@ -2489,7 +2489,7 @@ early_ret:

if (success && is_enum && num_enum_values == 0)
// Empty enum statement. Add an empty "values" class variable
- enum_add_values_member(cl, &classmembers, 0, &type_list);
+ success = enum_add_values_member(cl, &classmembers, 0, &type_list);

/*
* Check a few things
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 67722d114..76ce9c50b 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -902,7 +902,7 @@ compile_load(
|| (imp = find_imported(name, 0, FALSE)) != NULL
|| (imp = find_imported_from_extends(cctx, name, 0, FALSE))
!= NULL)
- res = compile_load_scriptvar(cctx, name, *arg, &end, imp);
+ res = compile_load_scriptvar(cctx, name, *arg, &end, imp);

// When evaluating an expression and the name starts with an
// uppercase letter it can be a user defined function.
Reply all
Reply to author
Forward
0 new messages