| 124 | } |
| 125 | |
| 126 | void LineLayout::SetLineStart(int line, int start) { |
| 127 | if ((line >= lenLineStarts) && (line != 0)) { |
| 128 | int newMaxLines = line + 20; |
| 129 | int *newLineStarts = new int[newMaxLines]; |
| 130 | for (int i = 0; i < newMaxLines; i++) { |
| 131 | if (i < lenLineStarts) |
| 132 | newLineStarts[i] = lineStarts[i]; |
| 133 | else |
| 134 | newLineStarts[i] = 0; |
| 135 | } |
| 136 | lineStarts.reset(newLineStarts); |
| 137 | lenLineStarts = newMaxLines; |
| 138 | } |
| 139 | lineStarts[line] = start; |
| 140 | } |
| 141 | |
| 142 | void LineLayout::SetBracesHighlight(Range rangeLine, const Sci::Position braces[], |
| 143 | char bracesMatchStyle, int xHighlight, bool ignoreStyle) { |