> [..]
> Patch below fixes the issue with our in-tree lynx.
> Top-right shows "(p1 of 2)" correctly and allows one
> to page down to see last line of the page: "line #20".
> 
> Same changes exist in the newer lynx source.
> 
> Comments/OK?

  I see the first 2 chunks in the latest lynx code but not the last one.
  Are you sure that bit is needed and if so is that your change or?

  f.-

> Index: GridText.c
> ===================================================================
> RCS file: /cvs/obsd/src/gnu/usr.bin/lynx/src/GridText.c,v
> retrieving revision 1.7
> diff -u -p GridText.c
> --- GridText.c        31 May 2009 09:16:52 -0000      1.7
> +++ GridText.c        15 Dec 2010 10:03:41 -0000
> @@ -1709,14 +1709,14 @@ static void display_title(HText *text)
>       sprintf(percent, " (l%d of %d)",
>               text->top_of_screen, text->Lines);
>      } else if ((text->Lines >= display_lines) && (display_lines > 0)) {
> -     int total_pages = ((text->Lines + display_lines - 1)
> +     int total_pages = ((text->Lines + display_lines)
>                          / display_lines);
>       int start_of_last_page = ((text->Lines <= display_lines)
>                                 ? 0
>                                 : (text->Lines - display_lines));
>  
>       sprintf(percent, " (p%d of %d)",
> -             ((text->top_of_screen >= start_of_last_page)
> +             ((text->top_of_screen > start_of_last_page)
>                ? total_pages
>                : ((text->top_of_screen + display_lines) / (display_lines))),
>               total_pages);
> @@ -7290,7 +7290,7 @@ BOOL HText_canScrollDown(void)
>      HText *text = HTMainText;
>  
>      return (BOOL) ((text != 0)
> -                && ((text->top_of_screen + display_lines) < text->Lines));
> +                && ((text->top_of_screen + display_lines) <= text->Lines));
>  }
>  
>  /*           Scroll actions
> [..]

Reply via email to