From 91448540f68235c7e1975fa604842b7872bc0f7a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 9 Nov 2009 19:53:08 -0500 Subject: Bug 601265 - gnome-terminal assert failure: table.c:723:_vte_table_match Fix handling of %% in termcap strings. Remove the assertion. --- src/table.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/table.c b/src/table.c index 24f8766..140e8c8 100644 --- a/src/table.c +++ b/src/table.c @@ -695,6 +695,7 @@ _vte_table_match(struct _vte_table *table, } /* Handle an escaped '%'. */ else if (p[1] == '%') { + p++; } /* Handle numeric parameters. */ else if ((p[1] == 'd') || @@ -720,7 +721,9 @@ _vte_table_match(struct _vte_table *table, p[2]); p += 2; } else { - g_assert_not_reached(); + _vte_debug_print (VTE_DEBUG_PARSE, + "Invalid termcap sequence %s\n", + original); } } /* else Literal. */ arginfo = arginfo->next; -- cgit v1.2.3