1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/misc/deco/files/patch-view.c
2003-03-24 10:09:03 +00:00

12 lines
448 B
C

--- view.c Sat Jul 12 20:53:25 1997
+++ view.c Sat Mar 22 18:24:31 2003
@@ -47,7 +47,7 @@
int sline, soff; /* search position */
baseline = basecol = 0;
- while (viewrec->lindex[baseline+1].seek < viewseek)
+ while (viewrec->lindex[baseline].len != -1 && viewrec->lindex[baseline+1].seek < viewseek)
++baseline;
while (viewrec->lindex[baseline].seek + offset (baseline, basecol) + 40 < viewseek)
basecol += 40;