]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1795: Indentation issues v9.0.1795
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sun, 27 Aug 2023 16:35:45 +0000 (18:35 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 27 Aug 2023 16:35:45 +0000 (18:35 +0200)
Problem:  Indentation issues
Solution: Fix code indentation issues.

closes: #12906

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
src/cmdexpand.c
src/ex_getln.c
src/if_py_both.h
src/popupwin.c
src/quickfix.c
src/version.c
src/vim9class.c
src/vim9compile.c
src/viminfo.c

index 6ffef0c3e748de952d79c04cbb91420678b5435d..e5b96fbe9c4a7b43e2f0be661bb8bca3ae56e5e8 100644 (file)
@@ -4022,7 +4022,7 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
     {
        xpc.xp_pattern = pat;
        xpc.xp_pattern_len = (int)STRLEN(xpc.xp_pattern);
-        xpc.xp_line = pat;
+       xpc.xp_line = pat;
 
        xpc.xp_context = cmdcomplete_str_to_type(type);
        if (xpc.xp_context == EXPAND_NOTHING)
@@ -4033,26 +4033,26 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
 
        if (xpc.xp_context == EXPAND_USER_DEFINED)
        {
-            // Must be "custom,funcname" pattern
-            if (STRNCMP(type, "custom,", 7) != 0)
-            {
-                semsg(_(e_invalid_argument_str), type);
-                return;
-            }
-
-            xpc.xp_arg = type + 7;
+           // Must be "custom,funcname" pattern
+           if (STRNCMP(type, "custom,", 7) != 0)
+           {
+               semsg(_(e_invalid_argument_str), type);
+               return;
+           }
+
+           xpc.xp_arg = type + 7;
        }
 
        if (xpc.xp_context == EXPAND_USER_LIST)
        {
-            // Must be "customlist,funcname" pattern
-            if (STRNCMP(type, "customlist,", 11) != 0)
-            {
-                semsg(_(e_invalid_argument_str), type);
-                return;
-            }
-
-            xpc.xp_arg = type + 11;
+           // Must be "customlist,funcname" pattern
+           if (STRNCMP(type, "customlist,", 11) != 0)
+           {
+               semsg(_(e_invalid_argument_str), type);
+               return;
+           }
+
+           xpc.xp_arg = type + 11;
        }
 
 # if defined(FEAT_MENU)
index 88eba32b80cbfd3154b14da5e0fd396a225b2d3f..ad3a3106a79f1682e3ba74a93c181f2d886eb4f4 100644 (file)
@@ -4167,7 +4167,7 @@ get_cmdline_completion(void)
 
     char_u *cmd_compl = cmdcomplete_type_to_str(p->xpc->xp_context);
     if (cmd_compl == NULL)
-        return NULL;
+       return NULL;
 
     if (p->xpc->xp_context == EXPAND_USER_LIST || p->xpc->xp_context == EXPAND_USER_DEFINED)
     {
index c1d7675cb3ba2aac2168ec62c56247dbd83d7c06..6e2ef26e7dee9c4be94b71d3db76c78c48b41085 100644 (file)
@@ -109,7 +109,7 @@ PyObject* Vim_PyObject_New(PyTypeObject *type, size_t objsize)
 {
     PyObject *obj = (PyObject *)PyObject_Malloc(objsize);
     if (obj == NULL)
-        return PyErr_NoMemory();
+       return PyErr_NoMemory();
     return PyObject_Init(obj, type);
 }
 # undef PyObject_NEW
@@ -270,7 +270,7 @@ int Vim_PyRun_SimpleString(const char *str)
     // This function emulates CPython's implementation.
     PyObject* m = PyImport_AddModule("__main__");
     if (m == NULL)
-        return -1;
+       return -1;
     PyObject* d = PyModule_GetDict(m);
     PyObject* output = Vim_PyRun_String(str, Py_file_input, d, d);
     if (output == NULL)
index 92195a20001e7383331fa598860dcb62fb62a77c..a8ac39d27feabc92777e012c041b74a19ea4f7cf 100644 (file)
@@ -817,7 +817,7 @@ apply_general_options(win_T *wp, dict_T *dict)
     }
 
     if (set_padding_border(dict, wp->w_popup_padding, "padding", 999) == FAIL ||
-        set_padding_border(dict, wp->w_popup_border, "border", 1) == FAIL)
+       set_padding_border(dict, wp->w_popup_border, "border", 1) == FAIL)
        return FAIL;
 
     di = dict_find(dict, (char_u *)"borderhighlight", -1);
index 6aa828b35238c8a0022f1ff0c2fa3b89d47a685e..aa431ea10578ec162e9f286546e640aba5538cdb 100644 (file)
@@ -2180,7 +2180,7 @@ qf_add_entry(
     qfp->qf_end_col = end_col;
     qfp->qf_viscol = vis_col;
     if (user_data == NULL || user_data->v_type == VAR_UNKNOWN)
-        qfp->qf_user_data.v_type = VAR_UNKNOWN;
+       qfp->qf_user_data.v_type = VAR_UNKNOWN;
     else
     {
        copy_tv(user_data, &qfp->qf_user_data);
index cc05920d015ca7806eda05c7919175d4eb0bc340..fed588e57787f8e1f544644e9d810b24c59e695e 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1795,
 /**/
     1794,
 /**/
index 4f86a6fca52c4daa6afcfe3a222dcff7d1473906..bf1b1203c6f34cebd128d44221222bea92bf0efd 100644 (file)
@@ -96,8 +96,8 @@ parse_member(
        fill_evalarg_from_eap(&evalarg, eap, FALSE);
        (void)skip_expr_concatenate(&init_arg, &expr_start, &expr_end, &evalarg);
 
-       // No type specified for the member.  Set it to "any" and the correct type will be
-       // set when the object is instantiated.
+       // No type specified for the member.  Set it to "any" and the correct
+       // type will be set when the object is instantiated.
        if (type == NULL)
            type = &t_any;
 
@@ -1743,7 +1743,7 @@ object_clear(object_T *obj)
     class_T *cl = obj->obj_class;
 
     if (!cl)
-        return;
+       return;
 
     // the member values are just after the object structure
     typval_T *tv = (typval_T *)(obj + 1);
@@ -1914,8 +1914,8 @@ object_free_nonref(int copyID)
 }
 
 /*
- * Return TRUE when the class "cl", its base class or one of the implemented interfaces
- * matches the class "other_cl".
+ * Return TRUE when the class "cl", its base class or one of the implemented
+ * interfaces matches the class "other_cl".
  */
     int
 class_instance_of(class_T *cl, class_T *other_cl)
index 09b4bf143b6487e819a344da1891cf0e31707195..7427f258f8724a73b4559882f7f4013465c98467 100644 (file)
@@ -2075,7 +2075,7 @@ compile_load_lhs_with_index(lhs_T *lhs, char_u *var_start, cctx_T *cctx)
        // Also for "obj.value".
        char_u *dot = vim_strchr(var_start, '.');
        if (dot == NULL)
-           return FAIL;
+          return FAIL;
 
        class_T *cl = lhs->lhs_type->tt_class;
        type_T *type = class_member_type(cl, dot + 1,
index fbab05eb769984052d6b566e925b7db52539e8c8..d3281564ee5a58a0ba3c5ee6b7e532032f5e8488 100644 (file)
@@ -1804,11 +1804,11 @@ handle_viminfo_register(garray_T *values, int force)
            y_ptr->y_array[i] = vp[i + 6].bv_string;
            vp[i + 6].bv_string = NULL;
        }
-        else if (vp[i + 6].bv_type != BVAL_STRING)
-        {
-            free(y_ptr->y_array);
-            y_ptr->y_array = NULL;
-        }
+       else if (vp[i + 6].bv_type != BVAL_STRING)
+       {
+           free(y_ptr->y_array);
+           y_ptr->y_array = NULL;
+       }
        else
            y_ptr->y_array[i] = vim_strsave(vp[i + 6].bv_string);
     }