Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/turtle_blocks_plugin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/turtle_blocks_plugin.py b/plugins/turtle_blocks_plugin.py
index 98f6d8d..f513b64 100644
--- a/plugins/turtle_blocks_plugin.py
+++ b/plugins/turtle_blocks_plugin.py
@@ -862,7 +862,11 @@ bullets'))
def _prim_printheap(self):
""" Display contents of heap """
- self.tw.showlabel('status', str(self.tw.lc.heap) + ' ')
+ heap_as_string = str(self.tw.lc.heap)
+ if len(heap_as_string) > 80:
+ self.tw.showlabel('status', str(self.tw.lc.heap)[0:79] + '…')
+ else:
+ self.tw.showlabel('status', str(self.tw.lc.heap))
def _prim_push(self, val):
""" Push value onto FILO """