diff --git a/platform/diff-impl/src/com/intellij/diff/tools/util/text/SimpleTextDiffProvider.java b/platform/diff-impl/src/com/intellij/diff/tools/util/text/SimpleTextDiffProvider.java index 630a90b2cb86..86712e0847dd 100644 --- a/platform/diff-impl/src/com/intellij/diff/tools/util/text/SimpleTextDiffProvider.java +++ b/platform/diff-impl/src/com/intellij/diff/tools/util/text/SimpleTextDiffProvider.java @@ -98,10 +98,16 @@ public class SimpleTextDiffProvider extends TwosideTextDiffProviderBase implemen } ComparisonManagerImpl comparisonManager = ComparisonManagerImpl.getInstanceImpl(); - if (diffComputer != null || linesRanges == null) { - List fragments = comparisonManager.compareLinesInner(text1, text2, lineOffsets1, lineOffsets2, - policy, innerFragments, indicator); - return Collections.singletonList(fragments); + if (linesRanges == null) { + if (diffComputer != null) { + List fragments = diffComputer.compute(text1, text2, policy, innerFragments, indicator); + return Collections.singletonList(fragments); + } + else { + List fragments = comparisonManager.compareLinesInner(text1, text2, lineOffsets1, lineOffsets2, + policy, innerFragments, indicator); + return Collections.singletonList(fragments); + } } else { List> result = new ArrayList<>();