mirror of
https://github.com/atom/atom.git
synced 2026-02-05 12:15:07 -05:00
Only match brackets if underlayer is visible
This commit is contained in:
@@ -42,6 +42,7 @@ module.exports =
|
||||
goToMatchingPair: (editor) ->
|
||||
return unless @pairHighlighted
|
||||
return unless underlayer = editor.getPane()?.find('.underlayer')
|
||||
return unless underlayer.isVisible()
|
||||
|
||||
position = editor.getCursorBufferPosition()
|
||||
previousPosition = position.translate([0, -1])
|
||||
|
||||
Reference in New Issue
Block a user