Skip to content

Commit 0d06295

Browse files
committed
修复错误
1 parent f0fcc25 commit 0d06295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeFormatLib/src/LuaCodeFormat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ std::string LuaCodeFormat::RangeFormat(const std::string uri, LuaFormatRange& ra
8080
}
8181
auto options = GetOptions(uri);
8282
LuaFormatter formatter(parser, *options);
83-
formatter.BuildRangeFormattedElement(range);
83+
formatter.BuildFormattedElement();
8484

85-
return formatter.GetFormattedText();
85+
return formatter.GetRangeFormattedText(range);
8686
}
8787

8888
std::shared_ptr<LuaCodeStyleOptions> LuaCodeFormat::GetOptions(const std::string& uri)

0 commit comments

Comments
 (0)