Add a vertical line on the gutter to indicate wrapped lines
This commit is contained in:
parent
50aac69d56
commit
c87f10e6d9
1 changed files with 9 additions and 2 deletions
|
|
@ -121,7 +121,14 @@ var Gutter = function(parentEl) {
|
||||||
this.$breakpoints[i] ? " ace_breakpoint " : " ",
|
this.$breakpoints[i] ? " ace_breakpoint " : " ",
|
||||||
annotation.className,
|
annotation.className,
|
||||||
"' title='", annotation.text.join("\n"),
|
"' 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'>¦</div>");
|
||||||
|
}
|
||||||
|
|
||||||
|
html.push("</div>");
|
||||||
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue