[vte/wip/egmont/bidi: 83/91] ring lookup fix
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 83/91] ring lookup fix
- Date: Tue, 5 Feb 2019 19:23:00 +0000 (UTC)
commit cbf4f92442c770e4eb5718f1c47da28777ab4198
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]