[vte] emulation: Clean up TAB/CJK when pushed out on the right



commit 1052bc6e8d675ef2142d416f18648df5399acd79
Author: Egmont Koblinger <egmont gmail com>
Date:   Sun Jun 22 11:39:58 2014 +0200

    emulation: Clean up TAB/CJK when pushed out on the right

 src/vte.c    |    2 ++
 src/vteseq.c |    1 -
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index cc211ee..00f2be6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -3237,6 +3237,8 @@ _vte_terminal_insert_char(VteTerminal *terminal, gunichar c,
                pcell->attr = attr;
                col++;
        }
+       if (_vte_row_data_length (row) > terminal->pvt->column_count)
+               _vte_terminal_cleanup_fragments (terminal, terminal->pvt->column_count, _vte_row_data_length 
(row));
        _vte_row_data_shrink (row, terminal->pvt->column_count);
 
        /* Signal that this part of the window needs drawing. */
diff --git a/src/vteseq.c b/src/vteseq.c
index 6c69614..1c5ba4b 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -1356,7 +1356,6 @@ _vte_sequence_handler_insert_character (VteTerminal *terminal, GValueArray *para
 
        save = screen->cursor_current;
 
-        _vte_terminal_cleanup_fragments(terminal, screen->cursor_current.col, screen->cursor_current.col);
        _vte_terminal_insert_char(terminal, ' ', TRUE, TRUE);
 
        screen->cursor_current = save;


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