Delete cursor multiple


#1

I want to delete one of the cursors when multiple selectors are enabled. So i am tried to use

editor = atom.workspace.getActiveEditor();
curs = editor.getCursors()
// which gives c[0] and c[1]
editor.removeCursor(c[0])

This removes the cursor, but if you enter text it gets updated on both the cursor positions. So what is the right way to do it?


#2

Try c[0].destroy()


#3

@alexrussell Thank you