Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 443a61d

Browse files
committed
Condition
1 parent 74eb100 commit 443a61d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

third_party/txt/src/txt/paragraph_txt.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ bool ParagraphTxt::ComputeBidiRuns(std::vector<BidiRun>* result) {
436436
ubidi_getVisualRun(bidi.get(), bidi_run_count - 2,
437437
&second_last_bidi_run_start,
438438
&second_last_bidi_run_length);
439-
if (bidi_run_start >= second_last_bidi_run_start) {
439+
if (bidi_run_start ==
440+
second_last_bidi_run_start + second_last_bidi_run_length) {
440441
has_trailing_whitespace = true;
441442
bidi_run_count--;
442443
}

0 commit comments

Comments
 (0)