Fix scrolling BufferView past empty lines

This commit is contained in:
josh committed 2017-09-20 20:00:19 -04:00
1 parent d2fa28c5e1
commit 55dc13d729
2 files changed
+32

No files matched your search

+1
View File
@@ -401,6 +401,7 @@ void BufferView::move_forward_to_screen_position(
std::shared_ptr<Buffer::Iterator> line, int target_row_offset,
bool allow_eol)
{
*m_iterator = *line;
for (auto it = horiz_iter(line); it.is_valid(); it++)
{
if ((allow_eol || (!it.is_eol())) &&