When selecting a completion in the autocomplete popup by number, the number is appened to the text. How to reproduce: 1. Create a new buffer 2. Type in: foo foobar 3. Type in fo and hit Ctrl-B for autocomplete. The autocomplete popup displays the two alternatives 1: foo 2: foobar 4. Type 2 to select the second alternative. fo will be completed to foobar2 instead of foo.