forked from aniani/vim
patch 9.0.0170: various minor code formatting issues
Problem: Various minor code formatting issues. Solution: Improve code formatting.
This commit is contained in:
parent
48c3f4e0bf
commit
113d9dec99
@ -1298,7 +1298,7 @@ del_bytes(
|
|||||||
// fixpos is TRUE, we don't want to end up positioned at the NUL,
|
// fixpos is TRUE, we don't want to end up positioned at the NUL,
|
||||||
// unless "restart_edit" is set or 'virtualedit' contains "onemore".
|
// unless "restart_edit" is set or 'virtualedit' contains "onemore".
|
||||||
if (col > 0 && fixpos && restart_edit == 0
|
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.col;
|
||||||
curwin->w_cursor.coladd = 0;
|
curwin->w_cursor.coladd = 0;
|
||||||
|
@ -1501,7 +1501,8 @@ luaV_buffer_newindex(lua_State *L)
|
|||||||
curbuf = buf;
|
curbuf = buf;
|
||||||
luaL_error(L, "cannot replace line");
|
luaL_error(L, "cannot replace line");
|
||||||
}
|
}
|
||||||
else changed_bytes(n, 0);
|
else
|
||||||
|
changed_bytes(n, 0);
|
||||||
curbuf = buf;
|
curbuf = buf;
|
||||||
if (b == curwin->w_buffer)
|
if (b == curwin->w_buffer)
|
||||||
check_cursor_col();
|
check_cursor_col();
|
||||||
|
@ -651,7 +651,8 @@ bufselfcmd(
|
|||||||
err = TCL_ERROR;
|
err = TCL_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // objc == 3
|
else
|
||||||
|
{ // objc == 3
|
||||||
line = (char *)ml_get_buf(buf, (linenr_T)val1, FALSE);
|
line = (char *)ml_get_buf(buf, (linenr_T)val1, FALSE);
|
||||||
Tcl_SetResult(interp, line, TCL_VOLATILE);
|
Tcl_SetResult(interp, line, TCL_VOLATILE);
|
||||||
}
|
}
|
||||||
@ -1090,7 +1091,8 @@ winselfcmd(
|
|||||||
if (err != TCL_OK)
|
if (err != TCL_OK)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else { // objc == 4
|
else
|
||||||
|
{ // objc == 4
|
||||||
err = tclgetlinenum(interp, objv[2], &val1, win->w_buffer);
|
err = tclgetlinenum(interp, objv[2], &val1, win->w_buffer);
|
||||||
if (err != TCL_OK)
|
if (err != TCL_OK)
|
||||||
break;
|
break;
|
||||||
|
@ -1087,7 +1087,7 @@ add_popup_dicts(buf_T *buf, list_T *l)
|
|||||||
{
|
{
|
||||||
int col = dict_get_number(dict, "col");
|
int col = dict_get_number(dict, "col");
|
||||||
|
|
||||||
prop_add_common( lnum, col, dict, buf, NULL);
|
prop_add_common(lnum, col, dict, buf, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1189,7 +1189,7 @@ format_lines(
|
|||||||
{
|
{
|
||||||
(void)del_bytes(indent, FALSE, FALSE);
|
(void)del_bytes(indent, FALSE, FALSE);
|
||||||
mark_col_adjust(curwin->w_cursor.lnum,
|
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--;
|
curwin->w_cursor.lnum--;
|
||||||
|
@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
170,
|
||||||
/**/
|
/**/
|
||||||
169,
|
169,
|
||||||
/**/
|
/**/
|
||||||
|
@ -2829,4 +2829,5 @@ long elapsed(DWORD start_tick);
|
|||||||
#define FFED_NO_GLOBAL 2 // only check for script-local functions
|
#define FFED_NO_GLOBAL 2 // only check for script-local functions
|
||||||
|
|
||||||
#define MAX_LSHIFT_BITS (varnumber_T)((sizeof(uvarnumber_T) * 8) - 1)
|
#define MAX_LSHIFT_BITS (varnumber_T)((sizeof(uvarnumber_T) * 8) - 1)
|
||||||
|
|
||||||
#endif // VIM__H
|
#endif // VIM__H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user