Branch: Tag:

2002-07-23

2002-07-23 12:58:45 by Martin Stjernholm <mast@lysator.liu.se>

Fixed bugs in get_line when the simple previous returned line cache is
used.

Rev: src/program.c:1.440

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.439 2002/07/09 16:48:34 grubba Exp $"); + RCSID("$Id: program.c,v 1.440 2002/07/23 12:58:45 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
4922:    pid=prog->id;    file = 0;    }else{ +  if (cnt < prog->linenumbers + prog->num_linenumbers)    goto fromold;    }   
4936:    cnt += len<<shift;    }    off+=get_small_number(&cnt); -  if(off > offset) break; +     fromold: -  +  if(off > offset) break;    line+=get_small_number(&cnt);    }    linep[0]=line;