[readline] some minor cleanup from the last checkin