Improve display of long autocompletion entries, fixing #1