Fix #177 - Tab-completion chomps previous text

- Optimize autocompletion by not using the heap