 
   Editor::findLineNumberAtCoordinate = (coord) ->
     treeView = @view.getViewNodeFor @tree
-    start = 0; end = treeView.bounds.length - 1
+    start = 0; end = treeView.bounds.length
     pivot = Math.floor (start + end) / 2
 
     while treeView.bounds[pivot].y isnt coord and start < end
-      
       if start is pivot or end is pivot
         return pivot
 

          @highlightCanvas.className.replace /\ ice-fade-in/, ''

          @currentlyAnimating = false
          @gutter.style.left = '0'
          @gutter.style.top = '0'
          @redrawMain()
          @paletteHeader.style.zIndex = 257


  # ================================
  hook 'populate', 0, ->
    @fontSize = 15
    @fontFamily = 'Courier New'

  Editor::setFontSize_raw = (fontSize) ->
    unless @fontSize is fontSize
