| | 111 | int firstclipcol = ScreenUnitsToCursorColumn(dc.m_rc.left / font_size.cx + scroll.x); |
| | 112 | if (firstclipcol == -1) firstclipcol = cursor_columns.size() - 1; |
| | 113 | |
| | 114 | if (firstclipcol > 0) |
| | 115 | firstclipcol = cursor_columns[firstclipcol - 1].column; else |
| | 116 | firstclipcol = 0; |
| | 117 | |
| | 118 | int lastclipcol = ScreenUnitsToCursorColumn(dc.m_rc.right / font_size.cx + scroll.x); |
| | 119 | if (lastclipcol == -1) lastclipcol = cursor_columns.size() - 1; |
| | 120 | |
| | 121 | if (lastclipcol > 0) |
| | 122 | lastclipcol = cursor_columns[lastclipcol].column; else |
| | 123 | lastclipcol = 0; |
| | 124 | if (lastclipcol >= columns.size()) |
| | 125 | lastclipcol = columns.size() - 1; |
| | 126 | |