fix BufferPane::screen_rows_below_line() while loop

This commit is contained in:
Josh Holtrop 2016-12-21 18:18:19 -05:00
parent 1486cdf7f4
commit f7d0c8189a

View File

@ -81,7 +81,7 @@ int BufferPane::screen_rows_below_line(const Buffer::Iterator & line)
{
Buffer::Iterator i = line;
int rows = 0;
while ((rows < m_rows) && i.go_next_line());
while ((rows < m_rows) && i.go_next_line())
{
rows += rows_in_line(i);
}