[vte/vte-0-56] emulation: Fix EL 0 after cursor movement



commit 4171f0450dadca5d93c7e7141bce0b4f377b1a2d
Author: Christian Persch <chpe src gnome org>
Date:   Thu Jun 4 21:54:41 2020 +0200

    emulation: Fix EL 0 after cursor movement
    
    Before erasing to the end of the line, need to fill the line
    up to the current cursor position.
    
    Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/260
    (cherry picked from commit b3d5c1f6a4422d4c46ceb6d0379aaeac3a3f8068)

 src/vteseq.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index d596d8b9..eb58703e 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -753,7 +753,7 @@ Terminal::clear_to_eol()
        /* ensure_cursor_is_onscreen(); */
 
        /* Get the data for the row which the cursor points to. */
-        auto rowdata = ensure_row();
+        auto rowdata = ensure_cursor();
        g_assert(rowdata != NULL);
         if ((glong) _vte_row_data_length(rowdata) > m_screen->cursor.col) {
                 /* Clean up Tab/CJK fragments. */


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