when EditCommand completes, clear buffer before inserting contents of editor