Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr authored Nov 26, 2024
1 parent 932986b commit 52c2ac5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/omegat/core/statistics/FindMatches.java
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ List<NearString> search(String searchText, boolean requiresTranslation,
List<String> ftrans = new ArrayList<>(segments.size());
// multiple segments
for (String onesrc : segments) {
// find match for a separate segment
// find match for a separate segment.
// WARN: the 5th argument should be
// `false` to avoid an infinite-loop.
List<NearString> segmentMatch = separateSegmentMatcher.search(onesrc, requiresTranslation,
false, stop, false, false);
if (!segmentMatch.isEmpty()
Expand Down

0 comments on commit 52c2ac5

Please sign in to comment.