check whether the cursor is already at the end of the line in cmd_end
Document fixing crash on <end> in empty :cmdline
Merge pull request #58 from cfillion/fix-end-crash

Fixed crash on navigation to end of line in command-line mode.

Thanks to Christian Fillion (a.k.a. cfillion).