Merge "Fixed bug in colorLines in CodeMirrorDemo."

This commit is contained in:
Shawn Pearce
2013-05-30 00:06:19 +00:00
committed by Gerrit Code Review

View File

@@ -197,7 +197,7 @@ public class CodeMirrorDemo extends Screen {
private int colorLines(CodeMirror cm, int line, int cnt) { private int colorLines(CodeMirror cm, int line, int cnt) {
for (int i = 0; i < cnt; i++) { for (int i = 0; i < cnt; i++) {
cm.addLineClass(line, LineClassWhere.WRAP, diffTable.style.diff()); cm.addLineClass(line + i, LineClassWhere.WRAP, diffTable.style.diff());
} }
return line + cnt; return line + cnt;
} }