finch/libgnt/gntwm.c

branch
soc.2007.finchfeat
changeset 19307
0027732ddb26
parent 18716
1255e9b186a7
parent 18809
5ba9bf0804fe
child 19314
472ad9489d68
--- a/finch/libgnt/gntwm.c	Thu Jul 19 10:35:11 2007 +0000
+++ b/finch/libgnt/gntwm.c	Sun Jul 22 01:28:19 2007 +0000
@@ -657,6 +657,7 @@
 		{'m', "└"},
 		{'j', "┘"},
 		{'a', "▒"},
+		{'n', "┼"},
 		{'\0', NULL}
 	};
 
@@ -889,7 +890,7 @@
 	len = wcstombs(NULL, wide, 0) + 1;
 	string = g_new0(char, len);
 	wcstombs(string, wide, len);
-	ret = gnt_util_onscreen_width(string, NULL);
+	ret = string ? gnt_util_onscreen_width(string, NULL) : 1;
 	g_free(string);
 	return ret;
 }

mercurial