diff --git a/static/js/editors.js b/static/js/editors.js
index fc99b05..7f561c1 100644
--- a/static/js/editors.js
+++ b/static/js/editors.js
@@ -339,7 +339,8 @@ var editors = {
if (autocompleteArray) {
for (var i = 0; i < autocompleteArray.length; i++) {
- var displayText = '';
+ var displayText = '',
+ text = autocompleteArray[i].name;
switch (autocompleteArray[i].class) {
case "type":
@@ -349,23 +350,21 @@ var editors = {
displayText = ''// + autocompleteArray[i].class
+ '' + autocompleteArray[i].name + ' '
+ autocompleteArray[i].type + '';
-
break;
case "func":
displayText = ''// + autocompleteArray[i].class
+ '' + autocompleteArray[i].name + ''
+ autocompleteArray[i].type.substring(4) + '';
-
+ text += '()';
break;
default:
console.warn("Can't handle autocomplete [" + autocompleteArray[i].class + "]");
-
break;
}
autocompleteHints[i] = {
displayText: displayText,
- text: autocompleteArray[i].name
+ text: text
};
}
}