Jacek Caban : conhost: Fix check for the last history index in edit_line_find_history.