[vte] Bug 499944 - vte_sequence_handler_ta abuses cell.attr.invisible to hide tab char



commit 09345b1ab25b72984419e82cfe3dca07bc5229ce
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Apr 1 01:39:41 2010 -0400

    Bug 499944 - vte_sequence_handler_ta abuses cell.attr.invisible to hide tab char

 src/vtedraw.c |    5 +++++
 src/vteseq.c  |    1 -
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/vtedraw.c b/src/vtedraw.c
index 0e23408..038efb7 100644
--- a/src/vtedraw.c
+++ b/src/vtedraw.c
@@ -397,6 +397,7 @@ static struct font_info *
 font_info_allocate (PangoContext *context)
 {
 	struct font_info *info;
+	PangoTabArray *tabs;
 
 	info = g_slice_new0 (struct font_info);
 
@@ -405,6 +406,10 @@ font_info_allocate (PangoContext *context)
 			  info);
 
 	info->layout = pango_layout_new (context);
+	tabs = pango_tab_array_new_with_positions (1, FALSE, PANGO_TAB_LEFT, 1);
+	pango_layout_set_tabs (info->layout, tabs);
+	pango_tab_array_free (tabs);
+
 	info->string = g_string_sized_new (VTE_UTF8_BPC+1);
 
 	font_info_measure_font (info);
diff --git a/src/vteseq.c b/src/vteseq.c
index fdc47db..691cf25 100644
--- a/src/vteseq.c
+++ b/src/vteseq.c
@@ -2082,7 +2082,6 @@ vte_sequence_handler_ta (VteTerminal *terminal, GValueArray *params)
 			if (!found) {
 				VteCell *cell = _vte_row_data_get_writable (rowdata, col);
 				VteCell tab = *cell;
-				tab.attr.invisible = 1; /* FIXME: bug 499944 */
 				tab.attr.columns = newcol - col;
 				tab.c = '\t';
 				/* Check if it fits in columns */



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