mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Merge pull request #4044 from dloverin/fix-ctrl-space
only record document changes for non-null keys
This commit is contained in:
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")) {
|
||||
|
||||
Reference in new issue
Block a user