editor: mark the first line as added when modifying a new buffer.

Just a small check to see if we added a \n from the first line so that
it gets marked as added.