From 3d3c719d7a400b0de7eeb52daf8de547c6692f35 Mon Sep 17 00:00:00 2001 From: "Roman.Ivanov" Date: Thu, 11 Jul 2019 17:27:25 +0700 Subject: [PATCH] Inlay hints: invert match braces presentation to highlight only a single brace GitOrigin-RevId: 90894c233a2993395dea45933c3a1efc67ce803e --- .../codeInsight/hints/presentation/PresentationFactory.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/hints/presentation/PresentationFactory.kt b/platform/lang-impl/src/com/intellij/codeInsight/hints/presentation/PresentationFactory.kt index 60ccf37edeec..57ac8e9f4661 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/hints/presentation/PresentationFactory.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/hints/presentation/PresentationFactory.kt @@ -192,13 +192,13 @@ class PresentationFactory(private val editor: EditorImpl) { onHover(it, object : HoverListener { override fun onHover(event: MouseEvent) { for ((index, forwarding) in forwardings.withIndex()) { - forwarding.delegate = presentations[index] + forwarding.delegate = decorator(presentations[index]) } } override fun onHoverFinished() { for ((index, forwarding) in forwardings.withIndex()) { - forwarding.delegate = decorator(presentations[index]) + forwarding.delegate = presentations[index] } } })