diff --git a/lib/ace/layer/gutter.js b/lib/ace/layer/gutter.js index 2a9438b4..fde13a0e 100644 --- a/lib/ace/layer/gutter.js +++ b/lib/ace/layer/gutter.js @@ -93,11 +93,11 @@ var Gutter = function(parentEl) { rowInfo.text.push(annoText); var type = annotation.type; if (type == "error") - rowInfo.className = "ace_error"; - else if (type == "warning" && rowInfo.className != "ace_error") - rowInfo.className = "ace_warning"; + rowInfo.className = " ace_error"; + else if (type == "warning" && rowInfo.className != " ace_error") + rowInfo.className = " ace_warning"; else if (type == "info" && (!rowInfo.className)) - rowInfo.className = "ace_info"; + rowInfo.className = " ace_info"; } } }; @@ -112,6 +112,7 @@ var Gutter = function(parentEl) { var foldWidgets = this.$showFoldWidgets && this.session.foldWidgets; var breakpoints = this.session.$breakpoints; var decorations = this.session.$decorations; + var lastLineNumber = 0; while (true) { if(i > foldStart) { @@ -127,7 +128,7 @@ var Gutter = function(parentEl) { "