Restore cursor buffer position after removing trailing newlines.
Fix that spec.
Getting the function name right helps a lot!
Update spec to maintain for selections when appending a newline
Maintain selection ranges when adding a newline
Merge pull request #21 from atom/fix-trailing-newline-cursor-shift

Restore cursor buffer position after removing trailing newlines