Skip to content

Commit ff45297

Browse files
committed
fix codeFormat rangeformat bug
1 parent 7b94e88 commit ff45297

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CodeFormat/src/CodeFormat.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,5 +251,9 @@ bool InitRangeFormat(CommandLine &cmd, FormatContext &formatContext) {
251251
formatContext.SetFormatRange(false, cmd.Get<std::string>("range-offset"));
252252
}
253253

254+
if (cmd.HasOption("complete-output")) {
255+
formatContext.EnableCompleteOutputRangeSupport();
256+
}
257+
254258
return true;
255259
}

0 commit comments

Comments
 (0)