Crash with console autocompletion
Also, the contents of the autocompletion popup are not always up to date. Most likely a bug with the popup reshowing logic.
Fixed|Console|UI: Crash when using autocompletion
The logic for reshowing the completion popup was incomplete.
This commit fixes #1645.