[vte/wip/egmont/bidi: 79/104] ring lookup fix
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 79/104] ring lookup fix
- Date: Wed, 29 May 2019 08:40:20 +0000 (UTC)
commit 33f9636b7be12e585f48f14945736beab1b579d3
Author: Egmont Koblinger <egmont gmail com>
Date: Fri Dec 7 14:07:52 2018 +0100
ring lookup fix
src/bidi.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/bidi.cc b/src/bidi.cc
index 2bf6c320..3f2f3030 100644
--- a/src/bidi.cc
+++ b/src/bidi.cc
@@ -334,8 +334,8 @@ vte::grid::row_t RingView::paragraph(vte::grid::row_t row)
break;
}
- if (lines == 0) {
- // huh?
+ if (line == 0) {
+ /* Beyond the end of the ring. */
return explicit_paragraph (row_orig, rtl);
}
@@ -382,7 +382,7 @@ vte::grid::row_t RingView::paragraph(vte::grid::row_t row)
line = m_start - row;
row = m_start;
}
- while (row < m_start + m_len) {
+ while (row < _vte_ring_next(m_ring) && row < m_start + m_len) {
bidirow = get_row_map_writable(row);
bidirow->m_base_rtl = rtl;
bidirow->m_has_foreign = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]