| 74 | } |
| 75 | |
| 76 | bool FileContentLayout::ScrollDown() { |
| 77 | if(!this->read_lines.empty()) { |
| 78 | this->read_lines.erase(this->read_lines.begin()); |
| 79 | this->line_offset++; |
| 80 | |
| 81 | const auto new_line_l = this->ReadLines(this->line_offset + this->read_lines.size(), 1); |
| 82 | if(!new_line_l.empty()) { |
| 83 | this->read_lines.push_back(new_line_l.front()); |
| 84 | } |
| 85 | |
| 86 | this->UpdateLineLimits(); |
| 87 | return true; |
| 88 | } |
| 89 | return false; |
| 90 | } |
| 91 | |
| 92 | bool FileContentLayout::MoveLeft() { |
| 93 | if(this->x_offset > 0) { |
no test coverage detected