Fix history search by cursor keys on Debian