console/libgnt/gntutils.c

changeset 14886
9f76d3a61aa7
parent 14855
84c869823944
child 15220
fc8b223f4b75
--- a/console/libgnt/gntutils.c	Fri Oct 27 18:19:40 2006 +0000
+++ b/console/libgnt/gntutils.c	Fri Oct 27 18:30:56 2006 +0000
@@ -60,7 +60,7 @@
 	const char *str = string;
 
 	if (len <= 0) {
-		len = g_utf8_strlen(string, -1);
+		len = gnt_util_onscreen_width(string, NULL);
 	}
 
 	while (width < len && *str) {

mercurial