   findMatchingEndPair: (startPairPosition, startPair, endPair) ->
     return if startPair is endPair
 
-    scanRange = new Range(startPairPosition.traverse([0, 1]), startPairPosition.traverse([MAX_ROWS_TO_SCAN, 0]))
+    scanRange = new Range(
+      startPairPosition.traverse(ONE_CHAR_FORWARD_TRAVERSAL),
+      startPairPosition.traverse(MAX_ROWS_TO_SCAN_FORWARD_TRAVERSAL)
+    )
     endPairPosition = null
     unpairedCount = 0
     @editor.scanInBufferRange @matchManager.pairRegexes[startPair], scanRange, (result) =>

ONE_CHAR_FORWARD_TRAVERSAL = Object.freeze(Point(0, 1))
ONE_CHAR_BACKWARD_TRAVERSAL = Object.freeze(Point(0, -1))
TWO_CHARS_BACKWARD_TRAVERSAL = Object.freeze(Point(0, -2))

module.exports =
class BracketMatcherView

  findMatchingStartPair: (endPairPosition, startPair, endPair) ->
    return if startPair is endPair

    scanRange = new Range(
      endPairPosition.traverse(MAX_ROWS_TO_SCAN_BACKWARD_TRAVERSAL),
      endPairPosition
    )
    startPairPosition = null
    unpairedCount = 0
    @editor.backwardsScanInBufferRange @matchManager.pairRegexes[startPair], scanRange, (result) =>
