Skip to content

Commit 11f27a1

Browse files
committed
修复CodeFormat设置路径的问题
1 parent 0d8e583 commit 11f27a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeFormat/src/LuaFormat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ LuaStyle LuaFormat::GetStyle(std::string_view path) {
207207
std::size_t matchProcess = 0;
208208
for (auto &config: _configs) {
209209
if (string_util::StartWith(path, config.Workspace)) {
210-
if (config.Workspace.size() > matchProcess) {
210+
if (config.Workspace.size() >= matchProcess) {
211211
matchProcess = config.Workspace.size();
212212
editorConfig = config.Editorconfig;
213213
}

0 commit comments

Comments
 (0)