We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81cbb94 commit e286102Copy full SHA for e286102
1 file changed
lib/plugins/codeit-match-braces.js
@@ -175,12 +175,18 @@
175
const cursor = cd.dropper.cursor();
176
177
if (cursor && cursor.in('brace')) {
178
+
179
const currentBrace = cursor.getParent();
180
181
if (currentBrace.id) {
182
183
currentBrace.classList.add('brace-active');
- getPartnerBrace(currentBrace).classList.add('brace-active');
184
185
+ const partnerBrace = getPartnerBrace(currentBrace);
186
+ if (partnerBrace) partnerBrace.classList.add('brace-active');
187
188
}
189
190
191
192
0 commit comments