Making completion a little smarter

Giving precedence to potential completions that have already been
committed as completions before.