File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -479,8 +479,12 @@ void Paragraph::Layout(double width, bool force) {
479479 }
480480 }
481481
482- // Exclude trailing whitespace from right-justified lines so the last
483- // visible character in the line will be flush with the right margin.
482+ // TODO(garyq): Make GetRectsForRange return a zero-width box for the
483+ // excluded whitespace such that the caret placement is correct regardless
484+ // of the index being whitespace or not.
485+
486+ // Exclude trailing whitespace from right and center-justified lines so the
487+ // last visible character in the line will be flush with the right margin.
484488 size_t line_end_index =
485489 (paragraph_style_.effective_align () == TextAlign::right ||
486490 paragraph_style_.effective_align () == TextAlign::center)
You can’t perform that action at this time.
0 commit comments