Minor bug fix related to auto-completion when the cursor is after a space