lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] lynx2.8.6dev.12 -- CRASH on OSX 10.4.1


From: Thomas Dickey
Subject: Re: [Lynx-dev] lynx2.8.6dev.12 -- CRASH on OSX 10.4.1
Date: Fri, 3 Jun 2005 20:16:00 -0400 (EDT)

On Fri, 3 Jun 2005 address@hidden 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]