fix #2: bufhist: buffer is not appended to history