diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-05-09 20:09:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-09 20:09:23 +0100 |
commit | 6ed545e79735f23ff8e650bc2f0967e5a0baedc9 (patch) | |
tree | 1c77e4b188c34d68e91c5c93e62c668ce51ffc2f /src/if_lua.c | |
parent | 921bde88804663a7cb825d7f7e8a5d8ae6b58650 (diff) | |
download | vim-git-6ed545e79735f23ff8e650bc2f0967e5a0baedc9.tar.gz |
patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928
Problem: Various white space and cosmetic mistakes.
Solution: Change spaces to tabs, improve comments.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r-- | src/if_lua.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/if_lua.c b/src/if_lua.c index 956fd4d7c..120ed7bbd 100644 --- 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; } |