Get the line of each cursor when using multi-cursors.

How would you get the position of each cursor individually? getCursor() only returns the {line,ch} of the last cursor.
For example, if I have a CM editor, then add multiple cursors with a ctrl-click, with there positions being [{line:0,ch:3},{line:1,ch:5}], then console.log(editor.getCursor()) it returns {line:1,ch:5}. Is it possible for it to return the {line,ch} of every cursor?


Please ignore this topic, I just realized that the listSelections() does exactly what I want. I apologize for posting.

Glad you figured it out!