[vte/wip/egmont/bidi] 134
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi] 134
- Date: Wed, 5 Jun 2019 11:03:49 +0000 (UTC)
commit e697e8bcabd3888391a1078b8884332cf58df293
Author: Egmont Koblinger <egmont gmail com>
Date: Wed Jun 5 13:03:33 2019 +0200
134
src/ringview.cc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ringview.cc b/src/ringview.cc
index 06fc4a69..e664c1f2 100644
--- a/src/ringview.cc
+++ b/src/ringview.cc
@@ -132,6 +132,9 @@ void RingView::set_width(vte::grid::column_t width)
void RingView::set_rows(vte::grid::row_t start, vte::grid::row_t len)
{
+ /* Force at least 1 row, see bug 134. */
+ len = MAX(len, 1);
+
if (start == m_start && len == m_len)
return;
@@ -141,8 +144,6 @@ void RingView::set_rows(vte::grid::row_t start, vte::grid::row_t len)
if (!m_invalid && start >= m_start && start + len <= m_start + m_len)
return;
- g_assert_cmpint (len, >=, 1);
-
/* m_rows is expanded on demand in update() */
/* m_bidirows needs exactly this many lines */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]