Skip to content

Commit 00e24b9

Browse files
committed
修复读取lua配置错误
1 parent f616e90 commit 00e24b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormatLib/src/CodeFormatLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ InfoNode CreateFromLua(InfoTree &t, lua_State *L) {
582582
auto len = luaL_len(L, -1);
583583
if (len != 0) {
584584
auto arr = t.CreateArray();
585-
for (auto i = 0; i < len; i++) {
585+
for (auto i = 1; i <= len; i++) {
586586
if (lua_geti(L, -1, i)) {
587587
arr.AddChild(CreateFromLua(t, L));
588588
}

0 commit comments

Comments
 (0)