turn off force complete when editor content changes

pull/21833/head
Aviral Dasgupta 2017-02-10 23:44:04 +05:30
parent e65744abdc
commit 2d39b25334
No known key found for this signature in database
GPG Key ID: 5FD1E9F4FFD3DA80
1 changed files with 3 additions and 3 deletions

View File

@ -75,11 +75,11 @@ export default class Autocomplete extends React.Component {
} else {
selectionOffset++; // selectionOffset is 1-indexed!
}
} else {
// If no completions were returned, we should turn off force completion.
forceComplete = false;
}
// If no completions were returned, we should turn off force completion.
forceComplete = false;
let hide = this.state.hide;
// These are lists of booleans that indicate whether whether the corresponding provider had a matching pattern
const oldMatches = this.state.completions.map((completion) => !!completion.command.command),