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




commit e26eb521dd4ab26511566fc60daa5fa2b6a0117d
Author: Hans Petter Jansson <hpj cl no>
Date:   Sat Aug 8 20:42:49 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]