clear line when scrolling through history