[vte/wip/egmont/bidi: 61/83] fix a crash typically on alternate screen top row
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont/bidi: 61/83] fix a crash typically on alternate screen top row
- Date: Thu, 3 Jan 2019 12:58:32 +0000 (UTC)
commit 5fb361de2a24471f1a4bc7f5f4761cb7748a1d4c
Author: Egmont Koblinger <egmont gmail com>
Date: Fri Sep 14 00:27:14 2018 +0200
fix a crash typically on alternate screen top row
src/vte.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 1bb8cfde..1667621c 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -3021,7 +3021,7 @@ Terminal::maybe_apply_bidi_attributes()
auto row = m_screen->cursor.row;
- if (row > 0) {
+ if (row > _vte_ring_delta (m_screen->row_data)) {
const VteRowData *rowdata = _vte_ring_index (m_screen->row_data, row - 1);
if (rowdata != nullptr && rowdata->attr.soft_wrapped) {
_vte_debug_print(VTE_DEBUG_BIDI,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]