Restore cursor buffer position after removing trailing newlines #21

Merged
merged 5 commits into from Mar 5, 2014