fix typo
This commit is contained in:
parent
156d9a7eeb
commit
db1118c258
1 changed files with 2 additions and 2 deletions
|
|
@ -39,8 +39,8 @@ var textCompleter = require("../autocomplete/text_completer");
|
|||
var keyWordCompleter = {
|
||||
getCompletions: function(session, pos, prefix, callback) {
|
||||
var keywords = session.$mode.$keywordList || [];
|
||||
keywords.filter(function(w) {
|
||||
return w.lastIndexOf(prefix, 0);
|
||||
keywords = keywords.filter(function(w) {
|
||||
return w.lastIndexOf(prefix, 0) == 0;
|
||||
});
|
||||
callback(null, keywords.map(function(word) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue