[vte] widget: Fix invalidation with scrolling region
- From: Egmont Koblinger <egmontkob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Fix invalidation with scrolling region
- Date: Fri, 31 May 2019 08:37:26 +0000 (UTC)
commit 9c657532e6c7871266dbf70b6488a749ac22fc14
Author: Egmont Koblinger <egmont gmail com>
Date: Fri May 31 10:30:52 2019 +0200
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
src/vte.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]