pager bug

From: Jurko Gospodnetic (Jurko.Gospodnetic@public.srce.hr)
Date: 03/16/96


There is a slight bug in the pager that I encountered.

When in the function next_page it checks for new line it skips one
possibility. It is possible to be at column PAGE_WIDTH (then current code
advances the line counter) and have a '\n' or '\r\n' at the next position
(then the current code also advances the line counter), thus line counter
is advanced twice in the same line...

I hope this will be fixed in the next patch.

My fix follows:

char *next_page(char *str)
{



This archive was generated by hypermail 2b30 : 12/07/00 PST