1
0
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:
Bram Moolenaar
2022-05-09 20:09:23 +01:00
parent 921bde8880
commit 6ed545e797
49 changed files with 164 additions and 159 deletions

View File

@@ -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;
}