From f7d0c8189aacaddb5bebc5f2ed0496613f87d7ff Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 21 Dec 2016 18:18:19 -0500 Subject: [PATCH] fix BufferPane::screen_rows_below_line() while loop --- src/gui/BufferPane.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/BufferPane.cc b/src/gui/BufferPane.cc index 8f99ea8..3a2b581 100644 --- a/src/gui/BufferPane.cc +++ b/src/gui/BufferPane.cc @@ -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); }