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 = {
|
var keyWordCompleter = {
|
||||||
getCompletions: function(session, pos, prefix, callback) {
|
getCompletions: function(session, pos, prefix, callback) {
|
||||||
var keywords = session.$mode.$keywordList || [];
|
var keywords = session.$mode.$keywordList || [];
|
||||||
keywords.filter(function(w) {
|
keywords = keywords.filter(function(w) {
|
||||||
return w.lastIndexOf(prefix, 0);
|
return w.lastIndexOf(prefix, 0) == 0;
|
||||||
});
|
});
|
||||||
callback(null, keywords.map(function(word) {
|
callback(null, keywords.map(function(word) {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue