[vte/wip/sixels] terminal: Properly get MINTTY_SIXEL_SCROLL_CURSOR_RIGHT from modes
- From: Hans Petter Jansson <hansp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/sixels] terminal: Properly get MINTTY_SIXEL_SCROLL_CURSOR_RIGHT from modes
- Date: Fri, 26 Jun 2020 16:36:34 +0000 (UTC)
commit 0d1481258f6525281e9d7e7619af1e2e8a4d227b
Author: Hans Petter Jansson <hpj cl no>
Date: Fri Jun 26 18:36:01 2020 +0200
terminal: Properly get MINTTY_SIXEL_SCROLL_CURSOR_RIGHT from modes
src/vte.cc | 2 --
src/vteinternal.hh | 2 --
src/vteseq.cc | 2 +-
3 files changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 8c818b2e..664b0461 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9949,8 +9949,6 @@ Terminal::reset(bool clear_tabstops,
m_mouse_smooth_scroll_delta = 0.;
/* Clear modifiers. */
m_modifiers = 0;
- /* Reset SIXEL-scrolls-right mode */
- m_sixel_scrolls_right = FALSE;
/* Reset SIXEL color register */
sixel_parser_set_default_color(&m_sixel_state);
/* Reset the saved cursor. */
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index cb248437..fe2e5e14 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -755,8 +755,6 @@ public:
/* Inline images */
gboolean m_images_enabled;
-
- gboolean m_sixel_scrolls_right;
sixel_state_t m_sixel_state;
/* State variables for handling match checks. */
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 102bca07..9335e547 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -4428,7 +4428,7 @@ Terminal::DECSIXEL(vte::parser::Sequence const& seq)
for (i = 0; i < height; ++i) {
erase_characters(width, true);
if (i == height - 1) {
- if (m_sixel_scrolls_right)
+ if (m_modes_private.MINTTY_SIXEL_SCROLL_CURSOR_RIGHT())
move_cursor_forward(width);
else
cursor_down(true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]