Skip to content

Commit dd3dae0

Browse files
committed
修复诊断
1 parent 0730a19 commit dd3dae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeFormatLib/src/CodeFormatLib.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ int diagnose_file(lua_State* L)
203203
// end table
204204
lua_newtable(L);
205205
lua_pushstring(L, "line");
206-
lua_pushinteger(L, diagnosticInfo.Range.Start.Line);
206+
lua_pushinteger(L, diagnosticInfo.Range.End.Line);
207207
lua_rawset(L, -3);
208208

209209
lua_pushstring(L, "character");
210-
lua_pushinteger(L, diagnosticInfo.Range.Start.Character);
210+
lua_pushinteger(L, diagnosticInfo.Range.End.Character);
211211
lua_rawset(L, -3);
212212

213213
lua_rawset(L, -3); // set end = {}

0 commit comments

Comments
 (0)