[vte] emulation: Make {insert, delete}-lines move the cursor to first column



commit 83d03666cf51850b708bced2e3fb43b3b4dde1c5
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri Jul 25 12:25:35 2014 +0200

    emulation: Make {insert,delete}-lines move the cursor to first column

 src/vteseq.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/vteseq.c b/src/vteseq.c
index 1c5ba4b..818b82f 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -2488,6 +2488,7 @@ vte_sequence_handler_insert_lines (VteTerminal *terminal, GValueArray *params)
                _vte_terminal_ring_remove (terminal, end);
                _vte_terminal_ring_insert (terminal, row, TRUE);
        }
+        terminal->pvt->screen->cursor_current.col = 0;
        /* Update the display. */
        _vte_terminal_scroll_region(terminal, row, end - row + 1, param);
        /* Adjust the scrollbars if necessary. */
@@ -2535,6 +2536,7 @@ vte_sequence_handler_delete_lines (VteTerminal *terminal, GValueArray *params)
                _vte_terminal_ring_remove (terminal, row);
                _vte_terminal_ring_insert (terminal, end, TRUE);
        }
+        terminal->pvt->screen->cursor_current.col = 0;
        /* Update the display. */
        _vte_terminal_scroll_region(terminal, row, end - row + 1, -param);
        /* Adjust the scrollbars if necessary. */


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