ref: 8b79ad59f14c4ced6ae2af6277d94b3265bd211d
parent: 528936156f02103a1b884d82d003f3cf4089923d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Nov 3 10:20:57 EST 2019
games/turtle: do exit instead of crash in redraw() when there where no lines drawn
--- a/sys/src/games/turtle.c
+++ b/sys/src/games/turtle.c
@@ -169,6 +169,8 @@
if(s == nil) break;
runline(s);
}
+ if(lines == nil)
+ exits(nil);
if(initdraw(nil, nil, nil) < 0)
sysfatal("initdraw: %r");