--- 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; }