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

        setTimeout ( ->

          # console.log "setScrollTop"
          editor.setScrollTop origScrollTop
          return
        ), 0
    else

# nopt.clean(data, types);
# return data;
# }
getScrollTop = (editor) ->
  view = editor.viewRegistry.getView(editor)
  view.getScrollTop()
setScrollTop = (editor, value) ->
  view = editor.viewRegistry.getView(editor)
  view.setScrollTop value

getCursors = (editor) ->
  cursors = editor.getCursors()
  posArray = []
