Add handling of cursor_start for console completions

This partially addresses #6690.
This handles `cursor_start` and `cursor_end` <= `cursor_pos`.