[vte/wip/egmont/bidi: 28/107] crash fix
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 28/107] crash fix
- Date: Thu, 30 May 2019 21:25:03 +0000 (UTC)
commit 47a4ec5c25bda69dc41ddfc4538c1481e5370f1d
Author: Egmont Koblinger <egmont gmail com>
Date: Thu Aug 23 21:58:52 2018 +0200
crash fix
src/bidi.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bidi.cc b/src/bidi.cc
index 7fb67bae..e1657b88 100644
--- a/src/bidi.cc
+++ b/src/bidi.cc
@@ -231,8 +231,8 @@ long RingView::find_paragraph(long row)
const VteRowData *row_data;
while (row-- > row_stop) {
- if (row == -1)
- return 0;
+ if (row < _vte_ring_delta(m_ring))
+ return row + 1;
row_data = m_ring->index(row);
if (row_data == nullptr || !row_data->attr.soft_wrapped)
return row + 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]