File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -410,13 +410,14 @@ BreakableBlockComment::BreakableBlockComment(
410
410
// now we just wrap them without stars.
411
411
Decoration = " " ;
412
412
}
413
- for (size_t i = 1 , e = Lines.size (); i < e && !Decoration.empty (); ++i) {
413
+ for (size_t i = 1 , e = Content.size (); i < e && !Decoration.empty (); ++i) {
414
+ const StringRef &Text = Content[i];
414
415
// If the last line is empty, the closing "*/" will have a star.
415
- if (i + 1 == e && Content[i] .empty ())
416
+ if (i + 1 == e && Text .empty ())
416
417
break ;
417
- if (!Content[i] .empty () && i + 1 != e && Decoration.startswith (Content[i] ))
418
+ if (!Text .empty () && i + 1 != e && Decoration.startswith (Text ))
418
419
continue ;
419
- while (!Content[i] .startswith (Decoration))
420
+ while (!Text .startswith (Decoration))
420
421
Decoration = Decoration.drop_back (1 );
421
422
}
422
423
You can’t perform that action at this time.
0 commit comments