Plan 9 from Bell Labs’s /usr/web/sources/contrib/mospak/abaco-html4/abaco-pagedoubleclick-guard.diff

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


--- sys/src/cmd/abaco/page.c
+++ sys/src/cmd/abaco/page.c
@@ -591,8 +591,8 @@
 				if(hasbrk(l->next->state))
 					break;
 		}
-		p->bot = l->lastbox->r.max;;
-	}else if(xy.x>l->lastbox->r.max.x && hasbrk(l->next->state)){	/* end of line? */
+		p->bot = l->lastbox->r.max;
+	}else if(xy.x>l->lastbox->r.max.x && l->next!=nil && hasbrk(l->next->state)){	/* end of line? */
 		p->bot = l->lastbox->r.max;
 		if(!hasbrk(l->state) && l->prev!=nil){
 			for(l=l->prev; l->prev!=nil; l=l->prev)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.