yet another readline fix

/cc @kr

I'm not going to merge this until you :+1: it or I come back with a fresh enough brain to not fuck this up again :)