Skip to content

Commit

Permalink
Merge branch 'hotfix/render-color-failure'
Browse files Browse the repository at this point in the history
  • Loading branch information
AprilViolet committed Sep 11, 2021
2 parents 6ed104a + 5a789ce commit 6c14804
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ abstract public class AbstractBracketHighlighter {

public static final String RIGHT_BRACKET = "}";

public static final String BRACE_ATTR_GUTTER = "|";

public AbstractBracketHighlighter(Editor editor) {
this.editor = editor;
this.project = this.editor.getProject();
Expand Down Expand Up @@ -161,7 +163,7 @@ public Pair<RangeHighlighter, RangeHighlighter> renderBracesInGutter(BracePair b
HighlightBracketPairSettingsPage.getTextAttributesKeyByToken(leftBrace.getElementType());
// if not found, get the text attr by brace text
if (textAttributesKey == null) {
textAttributesKey = HighlightBracketPairSettingsPage.getTextAttributesKeyByText(leftBraceText);
textAttributesKey = HighlightBracketPairSettingsPage.getTextAttributesKeyByText(BRACE_ATTR_GUTTER);
}
final TextAttributes textAttributes = editor.getColorsScheme().getAttributes(textAttributesKey);

Expand Down

0 comments on commit 6c14804

Please sign in to comment.