summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-11-09 19:53:08 -0500
committerBehdad Esfahbod <behdad@behdad.org>2009-11-09 20:01:58 -0500
commit91448540f68235c7e1975fa604842b7872bc0f7a (patch)
treee8cec867c8288c8b7036a9836cb7d9af05e74d27
parent59d08fab676cccbed8df7f8e9d9a39bab6e5413d (diff)
Bug 601265 - gnome-terminal assert failure: table.c:723:_vte_table_match
Fix handling of %% in termcap strings. Remove the assertion.
-rw-r--r--src/table.c5
1 files changed, 4 insertions, 1 deletions
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;