Fix BufferView repeating last line for the remainder of the view

This commit is contained in:
josh committed 2017-09-20 19:40:51 -04:00
1 parent 22171cacf9
commit d2fa28c5e1
2 files changed
+18 -1

No files matched your search

+2 -1
View File
@@ -88,7 +88,8 @@ void BufferView::update()
ld.line = std::make_shared<Buffer::Iterator>(*line_iterator);
m_lines.push_back(ld);
row_offset += ld.n_rows;
line_iterator->go_next_line();
if (!line_iterator->go_next_line())
break;
}
/* Reset some fields if buffer becomes empty. */