Merge "Fixed bug in colorLines in CodeMirrorDemo."
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user