[vte/vte-0-58] emulation: Fix EL 0 after cursor movement
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-58] emulation: Fix EL 0 after cursor movement
- Date: Thu, 4 Jun 2020 19:58:26 +0000 (UTC)
commit 271c49a976b3451736f6999a4e9fa5c61ed91152
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 3329b0b2..f7ffd151 100644
--- a/src/vteseq.cc
+++ b/src/vteseq.cc
@@ -795,7 +795,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]