fix up-line-or-history