guillermooo/Vintageous — pull request #334 by DylanBruzenak (2013-08-17 21:11:35+00:00)
Title: Pull requests

This fixes some odd behaviors with the 'e' command at the end of a file. It was selecting up to one before the last non-whitespace character. In vim:

- e does nothing on an empty line
- selects the last character of a word when it's in the line (obvious!)
- jumps to the last whitespace character if the cursor is on a space on the last line of the file (can't jump to the end of the next word, since there is no next word)

These patches should bring the 'e' behavior in line with this. I'm assuming the last_whitespace_character if is there to work around some bug I'm not aware of, so this probably needs to be checked against whatever that case is.