about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-08-28 16:06:25 -0400
committerJosh Rickmar <jrick@devio.us>2012-08-28 16:06:25 -0400
commitfc721864ca1b124b0b0c8142433fe28e22b70451 (patch)
treebeb9a58b1e9f61b1a5135b890545cdf20cbe73dd
parent12ea2dd805544d3869ce08793773b46b28c6a0d3 (diff)
downloadxombrero-fc721864ca1b124b0b0c8142433fe28e22b70451.tar.gz
Fix about:favorites (:fav, not :favedit) with no entries
-rw-r--r--about.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/about.c b/about.c
index 61ed2ac..d996db9 100644
--- a/about.c
+++ b/about.c
@@ -1351,9 +1351,9 @@ xtp_page_fl(struct tab *t, struct karg *args)
 	if (i == 1) {
 		tmp = body;
 		body = g_strdup_printf("%s<tr>"
-		    "<td colspan='3' style='text-align: center'>"
+		    "<td colspan='%d' style='text-align: center'>"
 		    "No favorites - To add one use the 'favadd' command."
-		    "</td></tr>", body);
+		    "</td></tr>", body, args->i & XT_DELETE ? 3 : 2);
 		g_free(tmp);
 	}