simplify completion code

Term::Readline does prefix pruning for us