[vte/wip/sixels: 96/111] terminal: Properly get MINTTY_SIXEL_SCROLL_CURSOR_RIGHT from modes




commit 810951347b976b988ec9e272376937fe7544457d
Author: Hans Petter Jansson <hpj cl no>
Date:   Sat Aug 8 20:42:49 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 75fcd3cb..e9b6b05c 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -9952,8 +9952,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]