fix BufferPane::screen_rows_below_line() while loop
This commit is contained in:
parent
1486cdf7f4
commit
f7d0c8189a
@ -81,7 +81,7 @@ int BufferPane::screen_rows_below_line(const Buffer::Iterator & line)
|
|||||||
{
|
{
|
||||||
Buffer::Iterator i = line;
|
Buffer::Iterator i = line;
|
||||||
int rows = 0;
|
int rows = 0;
|
||||||
while ((rows < m_rows) && i.go_next_line());
|
while ((rows < m_rows) && i.go_next_line())
|
||||||
{
|
{
|
||||||
rows += rows_in_line(i);
|
rows += rows_in_line(i);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user