Write previous line in history file