1. Pypy
  2. Untitled project
  3. jitviewer

Commits

Maciej Fijalkowski  committed 783713a

"fix"

  • Participants
  • Parent commits 4aa321f
  • Branches default

Comments (0)

Files changed (1)

File _jitviewer/display.py

View file
                     last_lineno = no
             else:
                 no = last_lineno
-            self.lines[no - self.firstlineno].chunks.append(chunk)
-    
+            try:
+                self.lines[no - self.firstlineno].chunks.append(chunk)
+            except IndexError:
+                self.lines[-1].chunks.append(chunk) # too bad, just stash it there
+