Add a vertical line on the gutter to indicate wrapped lines

This commit is contained in:
Julian Viereck 2011-05-20 20:14:36 +02:00
commit c87f10e6d9

View file

@ -108,7 +108,7 @@ var Gutter = function(parentEl) {
while (true) {
if(i > foldStart) {
i = fold.end.row+1;
i = fold.end.row + 1;
fold = this.session.getNextFold(i);
foldStart = fold ?fold.start.row :Infinity;
}
@ -121,7 +121,14 @@ var Gutter = function(parentEl) {
this.$breakpoints[i] ? " ace_breakpoint " : " ",
annotation.className,
"' title='", annotation.text.join("\n"),
"' style='height:", this.session.getRowHeight(config, i), "px;'>", (i+1), "</div>");
"' style='height:", config.lineHeight, "px;'>", (i+1));
var wrappedRowLength = this.session.getRowLength(i) - 1;
while (wrappedRowLength--) {
html.push("</div><div class='ace_gutter-cell' style='height:", config.lineHeight, "px'>&brvbar;</div>");
}
html.push("</div>");
i++;
}