Gets the currently selected text (only valid for active file).
Delegates to buffer. Updates cursor_line / cursor_offset in memory only.