Close autocompletion when entering a space. Fixes #52.