| 693 | } |
| 694 | |
| 695 | void TextfileWindow::UpdateVisibleIterators() |
| 696 | { |
| 697 | int pos = this->vscroll->GetPosition(); |
| 698 | int cap = this->vscroll->GetCapacity(); |
| 699 | this->visible_first = this->GetIteratorFromPosition(pos); |
| 700 | |
| 701 | /* The last visible iterator ignores line wrapping so that it does not need to change when line heights change. */ |
| 702 | this->visible_last = std::ranges::next(this->visible_first, cap + 1, std::end(this->lines)); |
| 703 | } |
| 704 | |
| 705 | void TextfileWindow::OnScrollbarScroll(WidgetID widget) |
| 706 | { |
no test coverage detected