SF Bug 767794
"Break or continue outside loop causes crash"
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 83f2de8..48b912d 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -605,6 +605,8 @@
         if ok:
             try:
                 msg, (dummy_filename, lineno, offset, line) = value
+                if not offset:
+                    offset = 0
             except:
                 ok = 0
         if ok: