marijnh/CodeMirror2 — pull request #601 by ananyasen (2012-06-27 01:39:38+00:00)
Title: don't show autocompletion hints if the token becomes empty

First of all, thanks for the great work on codemirror.

I am using the autocompletion feature to implement :
- automatic code completion hinting
- code completion hinting on [control+space] key event

I noticed a small bug:
After the code hint drop-down is activated, if we backspace to clear the token, the code hint drop-down does not close. It stays active, even with typing spaces or tab now. This seems less optimal to me. Some popular editors close the hinting drop-down after the user has cleared the current token.
:: Browser: Chrome 19

I have made a small change to fix this, in this pull request.