fix BufferPane::screen_rows_below_line() while loop
This commit is contained in:
1 parent
1486cdf7f4
commit
f7d0c8189a
1 file changed
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user