         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 = []

            # addition happens asynchronously
            setTimeout ( ->
              setCursors(editor, posArray)
              setScrollTop(editor, origScrollTop)
              # console.log "setScrollTop"
              return
            ), 0
