         setTimeout ( ->
 
           # console.log "setScrollTop"
-          editor.setScrollTop origScrollTop
+          setScrollTop editor, origScrollTop
           return
         ), 0
     else

# nopt.clean(data, types);
# return data;
# }
getCursors = (editor) ->
  cursors = editor.getCursors()
  posArray = []

      logger.verbose('save editor positions', key, beautifyOnSave)
      if beautifyOnSave
        posArray = getCursors(editor)
        origScrollTop = getScrollTop(editor)
        beautifyFilePath(filePath, ->
          if editor.isAlive() is true
            buffer.reload()
