Skip to content

Commit aec7670

Browse files
committed
[clangd] Revert the change concerning new lines
See the comment. 2853a83#r143690024
1 parent 2853a83 commit aec7670

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

clang-tools-extra/clangd/Format.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,7 @@ formatIncremental(llvm::StringRef OriginalCode, unsigned OriginalCursor,
281281
// Never *remove* lines in response to pressing enter! This annoys users.
282282
if (InsertedText == "\n") {
283283
Style.MaxEmptyLinesToKeep = 1000;
284-
Style.KeepEmptyLines = {
285-
/*AtEndOfFile=*/true,
286-
/*AtStartOfBlock=*/true,
287-
/*AtStartOfFile=*/true,
288-
};
284+
Style.KeepEmptyLines.AtStartOfBlock = true;
289285
}
290286

291287
// Compute the code we want to format:

0 commit comments

Comments
 (0)