Skip to content

Commit 91c9b81

Browse files
committed
Fix bug causing repetition of suffixes
1 parent 93060fd commit 91c9b81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Format/BreakableToken.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ void BreakableStringLiteral::insertBreak(unsigned LineIndex,
279279
WhitespaceManager &Whitespaces) const {
280280

281281
const unsigned SplitEnd = TailOffset + Split.first + Split.second;
282-
const bool IsLastFragment = SplitEnd >= Line.size() - UnbreakableTailLength;
283-
282+
const bool IsLastFragment = SplitEnd > Line.size() - UnbreakableTailLength;
284283
StringRef LocalPostfix = (IsLastFragment) ? Postfix : ContinuationPostfix;
285284

286285
Whitespaces.replaceWhitespaceInToken(

0 commit comments

Comments
 (0)