From 78da869a047adbf33c03c08af05b0493bccf4cd4 Mon Sep 17 00:00:00 2001 From: Konstantin Kolosovsky Date: Sun, 22 Mar 2020 19:29:26 +0300 Subject: [PATCH] vcs: Restore "hide traffic light for commit message if found problems have <= TYPO severities" behavior This commit partially reverts c18a73d0b8bd9b18fcd8c1b2efdf10c1bcd31f24 to restore 66dce364ad4da06d9f2c5b998f89ff4d0868a3a0 behavior GitOrigin-RevId: 68fc16e7bee271107dabb415eab8bc7d19a1a3c1 --- .../vcs-impl/src/com/intellij/openapi/vcs/ui/CommitMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/ui/CommitMessage.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/ui/CommitMessage.java index 10b1f405f29d..97402a84f03b 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/ui/CommitMessage.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/ui/CommitMessage.java @@ -318,7 +318,7 @@ public class CommitMessage extends JPanel implements Disposable, DataProvider, C HighlightSeverity minSeverity = notNull(HighlightDisplayLevel.find("TYPO"), HighlightDisplayLevel.DO_NOT_SHOW).getSeverity(); for (int i = 0; i < errorCount.length; i++) { - if (errorCount[i] > 0 && getSeverityRegistrar().compare(getSeverityRegistrar().getSeverityByIndex(i), minSeverity) >= 0) { + if (errorCount[i] > 0 && getSeverityRegistrar().compare(getSeverityRegistrar().getSeverityByIndex(i), minSeverity) > 0) { return true; } }