fix #2103 completion filtering doesn't work when started with empty prefix

This commit is contained in:
nightwing 2014-09-07 15:00:21 +04:00
commit 5f6782d949

View file

@ -206,7 +206,8 @@ var Autocomplete = function() {
var prefix = util.retrievePrecedingIdentifier(line, pos.column);
this.base = session.doc.createAnchor(pos.row, pos.column - prefix.length);
this.base.$insertRight = true;
var matches = [];
var total = editor.completers.length;
editor.completers.forEach(function(completer, i) {