about summary refs log tree commit diff stats
path: root/src/LYUtils.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2008-09-05 00:30:55 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2008-09-05 00:30:55 -0400
commit260d8a57df392ef59b6430ccadf4e9e5bcdefe12 (patch)
treea279a10e16597a2b7b401f3c92bef9168be03d18 /src/LYUtils.c
parent3ec9560de810415534fac8c4e49caa5def1176de (diff)
downloadlynx-snapshots-260d8a57df392ef59b6430ccadf4e9e5bcdefe12.tar.gz
snapshot of project "lynx", label v2-8-7dev_9h
Diffstat (limited to 'src/LYUtils.c')
-rw-r--r--src/LYUtils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/LYUtils.c b/src/LYUtils.c
index 4a7063ab..7b1cb164 100644
--- a/src/LYUtils.c
+++ b/src/LYUtils.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYUtils.c,v 1.169 2008/08/31 19:03:45 tom Exp $ */
+/* $LynxId: LYUtils.c,v 1.170 2008/09/05 00:19:21 tom Exp $ */
 #include <HTUtils.h>
 #include <HTTCP.h>
 #include <HTParse.h>
@@ -1091,8 +1091,8 @@ void LYhighlight(int flag,
 	    if (avail_space > links[cur].l_form->size)
 		avail_space = links[cur].l_form->size;
 
-	    gllen = LYmbcsstrlen(text, utf_flag, NO);
-	    len = LYmbcs_skip_glyphs(text, avail_space, utf_flag) - text;
+	    gllen = LYmbcsstrlen(text, utf_flag, YES);
+	    len = LYmbcs_skip_cells(text, avail_space, utf_flag) - text;
 	    LYwaddnstr(LYwin, text, len);
 	    while (gllen++ < avail_space)
 		LYaddch('_');