marijnh/CodeMirror2 — Issue #234: Hinting not reliably picking up space
Author: Page-
Created: 2011-11-07 17:01:14+00:00
State: open

I'm using the simple-hint.js with my own hinting built on top. I've removed the check to insert when space is pressed as some of the hints include multiple words, for example the completion set ["at least", "at most"].
When you hit ctrl+space at the start and type "at" it works fine but when typing the space it sometimes adds it to the editor but often does not (the autocompletions briefly flicker away and back), I'm not sure why it is different for spaces but if I increase the timeout to 100 for the "else if (code != 38 && code != 40) " it starts to work reliably. As it stands this won't be an issue with the default simple-hint.js as space will just do the insert however I thought it good to bring to your attention as it might occur with other characters or be highlighting a deeper issue.