simplified add_history for edit buffer