| 174 | } |
| 175 | |
| 176 | void LineLayout::RestoreBracesHighlight(Range rangeLine, Position braces[], bool ignoreStyle) { |
| 177 | if (!ignoreStyle && rangeLine.ContainsCharacter(braces[0])) { |
| 178 | int braceOffset = braces[0] - rangeLine.start; |
| 179 | if (braceOffset < numCharsInLine) { |
| 180 | styles[braceOffset] = bracePreviousStyles[0]; |
| 181 | } |
| 182 | } |
| 183 | if (!ignoreStyle && rangeLine.ContainsCharacter(braces[1])) { |
| 184 | int braceOffset = braces[1] - rangeLine.start; |
| 185 | if (braceOffset < numCharsInLine) { |
| 186 | styles[braceOffset] = bracePreviousStyles[1]; |
| 187 | } |
| 188 | } |
| 189 | xHighlightGuide = 0; |
| 190 | } |
| 191 | |
| 192 | int LineLayout::FindBefore(XYPOSITION x, int lower, int upper) const { |
| 193 | do { |
no test coverage detected