summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgmont Koblinger <egmont@gmail.com>2019-05-31 10:30:52 +0200
committerEgmont Koblinger <egmont@gmail.com>2019-05-31 10:36:25 +0200
commit9c657532e6c7871266dbf70b6488a749ac22fc14 (patch)
tree3c3195511b856fb51db4aeac556c66e964fc60ef
parent4b53da3627efead28ee2034c9ad368e37c378da1 (diff)
downloadvte-9c657532e6c7871266dbf70b6488a749ac22fc14.tar.gz
widget: Fix invalidation with scrolling region
In some special case involving a scrolling region, the wrong part of the display was invalidated. https://gitlab.gnome.org/GNOME/vte/issues/131
-rw-r--r--src/vte.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vte.cc b/src/vte.cc
index cd9a565e..920ab7e9 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -2694,7 +2694,8 @@ Terminal::cursor_down(bool explicit_sequence)
ring_insert(m_screen->cursor.row, false);
/* Force the areas below the region to be
* redrawn -- they've moved. */
- invalidate_rows(start, end);
+ invalidate_rows(m_screen->cursor.row,
+ m_screen->insert_delta + m_row_count - 1);
/* Force scroll. */
adjust_adjustments();
} else {