[vte] emulation: Fix EL 0 after cursor movement



commit b3d5c1f6a4422d4c46ceb6d0379aaeac3a3f8068
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

 src/vteseq.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/vteseq.cc b/src/vteseq.cc
index 15046d41..ba9a2df6 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -760,7 +760,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]