mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
docs: add style rule regarding initialization
Specifically, specify that each initialization should be done on a separate line.
This commit is contained in:
@@ -82,7 +82,8 @@ static int regex_match_line(lua_State *lstate)
|
||||
|
||||
handle_T bufnr = (handle_T)luaL_checkinteger(lstate, 2);
|
||||
linenr_T rownr = (linenr_T)luaL_checkinteger(lstate, 3);
|
||||
int start = 0, end = -1;
|
||||
int start = 0;
|
||||
int end = -1;
|
||||
if (narg >= 4) {
|
||||
start = (int)luaL_checkinteger(lstate, 4);
|
||||
}
|
||||
@@ -177,7 +178,8 @@ int nlua_str_utfindex(lua_State *const lstate) FUNC_ATTR_NONNULL_ALL
|
||||
}
|
||||
}
|
||||
|
||||
size_t codepoints = 0, codeunits = 0;
|
||||
size_t codepoints = 0;
|
||||
size_t codeunits = 0;
|
||||
mb_utflen(s1, (size_t)idx, &codepoints, &codeunits);
|
||||
|
||||
lua_pushinteger(lstate, (lua_Integer)codepoints);
|
||||
|
@@ -74,7 +74,8 @@ static void get_linematch_results(lua_State *lstate, mmfile_t *ma, mmfile_t *mb,
|
||||
int *decisions = NULL;
|
||||
size_t decisions_length = linematch_nbuffers(diff_begin, diff_length, 2, &decisions, iwhite);
|
||||
|
||||
int lnuma = start_a, lnumb = start_b;
|
||||
int lnuma = start_a;
|
||||
int lnumb = start_b;
|
||||
|
||||
int hunkstarta = lnuma;
|
||||
int hunkstartb = lnumb;
|
||||
|
Reference in New Issue
Block a user