On Fri, 3 Jun 2005 [EMAIL PROTECTED] wrote:
Go to:
http://www-1.ibm.com/servers/eserver/zseries/zos/bkserv/
do repeated searches for "r5", and watch the screen misbehave.
Here's a fix for that one...
--- GridText.c.orig 2005-06-02 18:50:02.000000000 -0400
+++ GridText.c 2005-06-03 20:13:54.000000000 -0400
@@ -1726,8 +1726,15 @@
#endif /* USE_COLOR_STYLE */
#ifdef WIDEC_CURSES
i = limit - LYbarWidth - strlen(percent) - LYstrCells(title);
- if (i <= 0)
+ if (i <= 0) { /* title is truncated */
+ i = limit - LYbarWidth - strlen(percent) - 3;
+ if (i <= 0) { /* no room at all */
+ title[0] = '\0';
+ } else {
+ strcpy(title + LYstrExtent2(title, i), "...");
+ }
i = 0;
+ }
LYmove(0, i);
#else
i = (limit - 1) - strlen(percent) - strlen(title);
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev