Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tawindow.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tawindow.py b/tawindow.py
index 3ea29e3..7b70da3 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -1231,8 +1231,12 @@ class TurtleArtWindow():
while b is not None:
if b.name in COLLAPSIBLE:
return None
+ if b.name in ['repeat', 'if', 'ifelse']:
+ if blk != b.connections[len(b.connections)-1]:
+ return None
if b.name == 'sandwichtop':
return b
+ blk = b
b = b.connections[0]
return None