Fixed issue #7

Doing an append after processing a prompt caused the newline to replace
the first character rather than precede it.