mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -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])
|
||||
|
||||
@@ -34,6 +34,9 @@ $.fn.pageDown = ->
|
||||
$.fn.isOnDom = ->
|
||||
@closest(document.body).length is 1
|
||||
|
||||
$.fn.isVisible = ->
|
||||
@is(':visible')
|
||||
|
||||
$.fn.containsElement = (element) ->
|
||||
(element[0].compareDocumentPosition(this[0]) & 8) == 8
|
||||
|
||||
|
||||
Reference in New Issue
Block a user