Merge pull request #4044 from dloverin/fix-ctrl-space

only record document changes for non-null keys
This commit is contained in:
Erik Tierney committed 2013-05-31 10:18:58 -07:00
commit 76eaefeb56
1 file changed
+5 -2
@@ -375,8 +375,11 @@ define(function (require, exports, module) {
// Compute fresh hints if none exist, or if the session
// type has changed since the last hint computation
if (this.needNewHints(session)) {
ScopeManager.handleFileChange({from: cursor, to: cursor, text: [key]});
ignoreChange = true;
if (key) {
ScopeManager.handleFileChange({from: cursor, to: cursor, text: [key]});
ignoreChange = true;
}
var scopeResponse = ScopeManager.requestHints(session, session.editor.document);
if (scopeResponse.hasOwnProperty("promise")) {