send completion data to completer callback

This commit is contained in:
Adam Jimenez 2014-10-21 12:46:29 +01:00
commit 7b01a4273e

View file

@ -177,7 +177,7 @@ var Autocomplete = function() {
return false; return false;
if (data.completer && data.completer.insertMatch) { if (data.completer && data.completer.insertMatch) {
data.completer.insertMatch(this.editor); data.completer.insertMatch(this.editor, data);
} else { } else {
if (this.completions.filterText) { if (this.completions.filterText) {
var ranges = this.editor.selection.getAllRanges(); var ranges = this.editor.selection.getAllRanges();