Make behavior of input line history a bit more intuitive