     @editor.setScrollRight(@pixelCursorTop)
     @putCursorOnScreen()
 
-module.exports = {ScrollDown, ScrollUp, ScrollCursorToTop, ScrollCursorToMiddle,
-  ScrollCursorToBottom, ScrollCursorToLeft, ScrollCursorToRight}
+module.exports = {
+  ScrollDown,
+  ScrollUp,
+
+  ScrollCursorToTop,
+  ScrollCursorToMiddle,
+  ScrollCursorToBottom,
+
+  ScrollCursorToLeft,
+  ScrollCursorToRight
+ }

  moveToFirstCharacterOfLine: ->
    @editor.moveToFirstCharacterOfLine()

  getOffSetPixelHeight: (where) ->
    lineCount =
      switch where
        when 'top' then @scrolloff
        when 'bottom' then @scrolloff + 1
    @editor.getLineHeightInPixels() * lineCount

class ScrollCursorToTop extends ScrollCursor
  @extend()

    not (@rows.first is 0)

  getScrollTop: ->
    @pixelCursorTop - (@editor.getHeight() - @getOffSetPixelHeight(1))

class ScrollCursorToMiddle extends ScrollCursor
  @extend()
