Merge branch 'vim' of http://github.com/ajaxorg/ace into vim

This commit is contained in:
Sergi Mansilla 2011-11-30 17:44:17 +01:00
commit ebd9356e7b

View file

@ -84,7 +84,9 @@ var Gutter = function(parentEl) {
}; };
for (var i=0; i<rowAnnotations.length; i++) { for (var i=0; i<rowAnnotations.length; i++) {
var annotation = rowAnnotations[i]; var annotation = rowAnnotations[i];
rowInfo.text.push(annotation.text.replace(/"/g, "&quot;").replace(/'/g, "&#8217;").replace(/</, "&lt;")); var annoText = annotation.text.replace(/"/g, "&quot;").replace(/'/g, "&#8217;").replace(/</, "&lt;");
if (rowInfo.text.indexOf(annoText) === -1)
rowInfo.text.push(annoText);
var type = annotation.type; var type = annotation.type;
if (type == "error") if (type == "error")
rowInfo.className = "ace_error"; rowInfo.className = "ace_error";