Minor fix for eshell-previous-matching-input (Bug#7585).