[vte/vte-0-36] drawing: Make the cursor over a tab character only a single cell wide



commit 67e9cf6fe71a9dd65592e5e587b6f48ae5879ea7
Author: Egmont Koblinger <egmont gmail com>
Date:   Tue Jan 7 20:23:17 2014 +0100

    drawing: Make the cursor over a tab character only a single cell wide
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691972

 src/vte.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 8111ae5..63bae83 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -11111,7 +11111,7 @@ vte_terminal_paint_cursor(VteTerminal *terminal)
 
        /* Draw the cursor. */
        item.c = (cell && cell->c) ? cell->c : ' ';
-       item.columns = cell ? cell->attr.columns : 1;
+       item.columns = item.c == '\t' ? 1 : cell ? cell->attr.columns : 1;
        item.x = col * width;
        item.y = row * height;
        cursor_width = item.columns * width;


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