[vte/wip/sixels] terminal: Hard wrap text under image printing area



commit 349f9d17ff3ad8a5b088cba4f490f157292efd69
Author: Hans Petter Jansson <hpj cl no>
Date:   Tue Jun 30 20:21:06 2020 +0200

    terminal: Hard wrap text under image printing area
    
    When printing an image over soft-wrapped rows, subsequent widening
    of the window would cause the image's cells to be rewrapped and
    interspersed with the original text, causing the image to be
    overwritten unintuitively.
    
    This is easily fixed by setting the overwritten rows hard wrapped.

 src/vteseq.cc | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index a7b7d084..b52460bc 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -4417,6 +4417,8 @@ Terminal::DECSIXEL(vte::parser::Sequence const& seq)
 
        for (i = 0; i < height; ++i) {
                erase_characters(width, true);
+                set_hard_wrapped(top + i);
+
                if (i == height - 1) {
                        if (m_modes_private.MINTTY_SIXEL_SCROLL_CURSOR_RIGHT())
                                move_cursor_forward(width);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]