[vte/vte-0-36] emulation: Avoid lines filled up with spaces in the restricted scrolling area



commit 4358250397456b033c88241e71ec8c3b96f0f339
Author: Egmont Koblinger <egmont gmail com>
Date:   Wed Oct 23 00:45:57 2013 +0200

    emulation: Avoid lines filled up with spaces in the restricted scrolling area
    
    https://bugzilla.gnome.org/show_bug.cgi?id=336238#c88

 src/vte.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 274ec47..5290032 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -338,10 +338,11 @@ _vte_terminal_ring_insert (VteTerminal *terminal, glong position, gboolean fill)
        VteRing *ring = terminal->pvt->screen->row_data;
        while (G_UNLIKELY (_vte_ring_next (ring) < position)) {
                row = _vte_ring_append (ring);
-               _vte_row_data_fill (row, &terminal->pvt->screen->fill_defaults, terminal->column_count);
+               if (terminal->pvt->screen->fill_defaults.attr.back != VTE_DEF_BG)
+                       _vte_row_data_fill (row, &terminal->pvt->screen->fill_defaults, 
terminal->column_count);
        }
        row = _vte_ring_insert (ring, position);
-       if (fill)
+       if (fill && terminal->pvt->screen->fill_defaults.attr.back != VTE_DEF_BG)
                _vte_row_data_fill (row, &terminal->pvt->screen->fill_defaults, terminal->column_count);
        return row;
 }


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