Mercurial > vim
changeset 29660:e134ff00be57 v9.0.0170
patch 9.0.0170: various minor code formatting issues
Commit: https://github.com/vim/vim/commit/113d9dec9958debbae2b611c98aed2f6f23c8502
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 8 15:49:18 2022 +0100
patch 9.0.0170: various minor code formatting issues
Problem: Various minor code formatting issues.
Solution: Improve code formatting.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 08 Aug 2022 17:00:05 +0200 |
parents | 2198955f9e27 |
children | 4e08213f76c6 |
files | src/change.c src/if_lua.c src/if_tcl.c src/popupwin.c src/textformat.c src/version.c src/vim.h |
diffstat | 7 files changed, 12 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/change.c +++ b/src/change.c @@ -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;
--- a/src/if_lua.c +++ b/src/if_lua.c @@ -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();
--- a/src/if_tcl.c +++ b/src/if_tcl.c @@ -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;
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -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); } } }
--- a/src/textformat.c +++ b/src/textformat.c @@ -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--;