[vte/wip/egmont-0-36: 1/2] Cursor over a tab character should be single cell wide.
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/egmont-0-36: 1/2] Cursor over a tab character should be single cell wide.
- Date: Mon, 18 Nov 2013 19:46:51 +0000 (UTC)
commit 81ec197ae5712150699e1bc2afbc90c7d6d7be94
Author: Egmont Koblinger <egmont gmail com>
Date: Tue Oct 22 23:33:13 2013 +0200
Cursor over a tab character should be 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 5290032..2d1b850 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -11108,7 +11108,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]