vim: allow selecting last character in buffer with select_char().
vim: handle corner case with line selection at end of buffer.