Improve code completion:

- better management of prefix and cursor position
- automatically restart if popup unvisible and user type some text (within the same prefix this did not work previously)
Merged 'develop'.