Fixed using amperstyle in history lines.
Added immediate change in modes when toggling amperstyle. Also made amperstyle searches literal searches.