diff --git a/lib/ace/layer/marker.js b/lib/ace/layer/marker.js index e09a3c9b..c68d3964 100644 --- a/lib/ace/layer/marker.js +++ b/lib/ace/layer/marker.js @@ -80,17 +80,14 @@ var Marker = function(parentEl) { var top = this.$getTop(range.start.row, config); var left = this.$padding + range.start.column * config.characterWidth; marker.renderer(html, range, left, top, config); - } - if (marker.type == "fullLine") { + } else if (marker.type == "fullLine") { this.drawFullLineMarker(html, range, marker.clazz, config); - } - else if (range.isMultiLine()) { + } else if (range.isMultiLine()) { if (marker.type == "text") this.drawTextMarker(html, range, marker.clazz, config); else this.drawMultiLineMarker(html, range, marker.clazz, config); - } - else { + } else { this.drawSingleLineMarker(html, range, marker.clazz + " ace_start", config); } }