forked from aniani/vim
patch 8.2.4928: various white space and cosmetic mistakes
Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
This commit is contained in:
28
src/if_lua.c
28
src/if_lua.c
@@ -949,29 +949,29 @@ luaV_list_newindex(lua_State *L)
|
||||
li = list_find(l, n);
|
||||
if (li == NULL)
|
||||
{
|
||||
if (!lua_isnil(L, 3))
|
||||
{
|
||||
typval_T v;
|
||||
luaV_checktypval(L, 3, &v, "inserting list item");
|
||||
if (list_insert_tv(l, &v, li) == FAIL)
|
||||
luaL_error(L, "failed to add item to list");
|
||||
clear_tv(&v);
|
||||
}
|
||||
if (!lua_isnil(L, 3))
|
||||
{
|
||||
typval_T v;
|
||||
luaV_checktypval(L, 3, &v, "inserting list item");
|
||||
if (list_insert_tv(l, &v, li) == FAIL)
|
||||
luaL_error(L, "failed to add item to list");
|
||||
clear_tv(&v);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (lua_isnil(L, 3)) // remove?
|
||||
{
|
||||
if (lua_isnil(L, 3)) // remove?
|
||||
{
|
||||
vimlist_remove(l, li, li);
|
||||
listitem_free(l, li);
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
typval_T v;
|
||||
luaV_checktypval(L, 3, &v, "setting list item");
|
||||
clear_tv(&li->li_tv);
|
||||
li->li_tv = v;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user