Add cursor position display to editor