Change getCursorPos() back to taking 'start' and 'end' for consistency with getSelection(), but pass them as 'from' and 'to' to CM