Revert "Refactor basic editor commands to use tmpstr utilities"

This reverts commit 8efaac865fd4b72e838044dc6105e6b18805cdb4.
Terminate empty string in editor_finish() when buffer is empty
Merge pull request #470 from dlowe-net/editor-fixes

Editor fixes