]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0170: various minor code formatting issues v9.0.0170
authorBram Moolenaar <Bram@vim.org>
Mon, 8 Aug 2022 14:49:18 +0000 (15:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 8 Aug 2022 14:49:18 +0000 (15:49 +0100)
Problem:    Various minor code formatting issues.
Solution:   Improve code formatting.

src/change.c
src/if_lua.c
src/if_tcl.c
src/popupwin.c
src/textformat.c
src/version.c
src/vim.h

index 66f34c00c56f4cef121ac56a2a7633232dcef60d..a9a9e731f1e0c2e9237cf2d3d8cac7fd6461fc8e 100644 (file)
@@ -1298,7 +1298,7 @@ del_bytes(
        // fixpos is TRUE, we don't want to end up positioned at the NUL,
        // unless "restart_edit" is set or 'virtualedit' contains "onemore".
        if (col > 0 && fixpos && restart_edit == 0
-                                             && (get_ve_flags() & VE_ONEMORE) == 0)
+                                        && (get_ve_flags() & VE_ONEMORE) == 0)
        {
            --curwin->w_cursor.col;
            curwin->w_cursor.coladd = 0;
index 120ed7bbdd0b581dd6e51e32f8a794deaf49c864..250da02ae2285343cf556de44c5bcb7d84a195c0 100644 (file)
@@ -1501,7 +1501,8 @@ luaV_buffer_newindex(lua_State *L)
            curbuf = buf;
            luaL_error(L, "cannot replace line");
        }
-       else changed_bytes(n, 0);
+       else
+           changed_bytes(n, 0);
        curbuf = buf;
        if (b == curwin->w_buffer)
            check_cursor_col();
index 9e018a2e27769bfa5bb6b83b0d1c5cfe9f546930..f2b5541d73e96bc3bee65c291bfba4d44552c795 100644 (file)
@@ -651,7 +651,8 @@ bufselfcmd(
                        err = TCL_ERROR;
                }
            }
-           else {  // objc == 3
+           else
+           {  // objc == 3
                line = (char *)ml_get_buf(buf, (linenr_T)val1, FALSE);
                Tcl_SetResult(interp, line, TCL_VOLATILE);
            }
@@ -1090,7 +1091,8 @@ winselfcmd(
                if (err != TCL_OK)
                    break;
            }
-           else {  // objc == 4
+           else
+           {  // objc == 4
                err = tclgetlinenum(interp, objv[2], &val1, win->w_buffer);
                if (err != TCL_OK)
                    break;
index 6d12c92f4783832c356aba5d4789b1a07ae52074..3c489ebcba48f57c8fac9b6fab8a72a5c64d850f 100644 (file)
@@ -1087,7 +1087,7 @@ add_popup_dicts(buf_T *buf, list_T *l)
                    {
                        int col = dict_get_number(dict, "col");
 
-                       prop_add_common( lnum, col, dict, buf, NULL);
+                       prop_add_common(lnum, col, dict, buf, NULL);
                    }
                }
            }
index f34c9984817024ac05ad74845e9806b4b8c2c30f..eee68f5029b5dd59c6772fcbd5228084533de208 100644 (file)
@@ -1189,7 +1189,7 @@ format_lines(
                    {
                        (void)del_bytes(indent, FALSE, FALSE);
                        mark_col_adjust(curwin->w_cursor.lnum,
-                                              (colnr_T)0, 0L, (long)-indent, 0);
+                                            (colnr_T)0, 0L, (long)-indent, 0);
                    }
                }
                curwin->w_cursor.lnum--;
index 3660eb7c4a7365d9877269d7dbe68d4d1c294b59..f9b5c2afcd0a062d0b5b6ee3268fb4f21d3c2e0f 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    170,
 /**/
     169,
 /**/
index eeeeb692128c5971e84df0b2c81d5f11fb0cb32e..972c9a5baf2ee10e323f8675064a9916205a33c2 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -2829,4 +2829,5 @@ long elapsed(DWORD start_tick);
 #define FFED_NO_GLOBAL 2       // only check for script-local functions
 
 #define MAX_LSHIFT_BITS (varnumber_T)((sizeof(uvarnumber_T) * 8) - 1)
+
 #endif // VIM__H