diff src/if_lua.c @ 28809:d0241e74bfdb v8.2.4928

patch 8.2.4928: various white space and cosmetic mistakes Commit: https://github.com/vim/vim/commit/6ed545e79735f23ff8e650bc2f0967e5a0baedc9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon May 9 20:09:23 2022 +0100 patch 8.2.4928: various white space and cosmetic mistakes Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
author Bram Moolenaar <Bram@vim.org>
date Mon, 09 May 2022 21:15:04 +0200
parents 06a137af96f8
children e134ff00be57
line wrap: on
line diff
--- a/src/if_lua.c
+++ b/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;
 }