[vte] widget: Fix another display glitch with rectangular selection and wide chars



commit 9ef0dcfba0bc43f1a8f8e4c7ef25e0184eb4659f
Author: Egmont Koblinger <egmont gmail com>
Date:   Sun Jun 22 21:36:54 2014 +0200

    widget: Fix another display glitch with rectangular selection and wide chars
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730800#c7

 src/vte.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 00f2be6..031c646 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -988,7 +988,7 @@ static void
 vte_terminal_deselect_all(VteTerminal *terminal)
 {
        if (terminal->pvt->has_selection) {
-               gint sx, sy, ex, ey;
+               gint sx, sy, ex, ey, extra;
 
                _vte_debug_print(VTE_DEBUG_SELECTION,
                                "Deselecting all text.\n");
@@ -1003,8 +1003,9 @@ vte_terminal_deselect_all(VteTerminal *terminal)
                sy = terminal->pvt->selection_start.row;
                ex = terminal->pvt->selection_end.col;
                ey = terminal->pvt->selection_end.row;
+                extra = terminal->pvt->selection_block_mode ? (VTE_TAB_WIDTH_MAX - 1) : 0;
                _vte_invalidate_region(terminal,
-                               MIN (sx, ex), MAX (sx, ex),
+                               MIN (sx, ex), MAX (sx, ex) + extra,
                                MIN (sy, ey),   MAX (sy, ey),
                                FALSE);
        }


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