summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/EditorWindow.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-07-06 04:22:25 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-07-06 04:22:25 (GMT)
commit889f8bf259eee088d2d81e3978fbdf34585fc9ae (patch)
treeb582ce8c905813ce73a9b170b217e2053105422b /Lib/idlelib/EditorWindow.py
parent491892b25e21173dee7c3427aed2d15e883c240d (diff)
downloadcpython-889f8bf259eee088d2d81e3978fbdf34585fc9ae.zip
cpython-889f8bf259eee088d2d81e3978fbdf34585fc9ae.tar.gz
cpython-889f8bf259eee088d2d81e3978fbdf34585fc9ae.tar.bz2
Modifying EditorWindow causes breakpoints in that module to be removed
from both sides of the split debugger. M Debugger.py M EditorWindow.py
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r--Lib/idlelib/EditorWindow.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 453e6ca..a7aa185 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -101,6 +101,7 @@ class EditorWindow:
self.top.instanceDict=flist.inversedict
self.recentFilesPath=os.path.join(idleConf.GetUserCfgDir(),
'recent-files.lst')
+ self.break_set = False
self.vbar = vbar = Scrollbar(top, name='vbar')
self.text_frame = text_frame = Frame(top)
self.text = text = Text(text_frame, name='text', padx=5, wrap=None,
@@ -631,6 +632,9 @@ class EditorWindow:
if not self.get_saved():
title = "*%s*" % title
icon = "*%s" % icon
+ if self.break_set:
+ shell = self.flist.pyshell
+ shell.interp.debugger.clear_file_breaks(self)
self.top.wm_title(title)
self.top.wm_iconname(icon)
@@ -699,8 +703,8 @@ class EditorWindow:
#print self.io.filename
if self.io.filename:
self.UpdateRecentFilesList(newFile=self.io.filename)
- shell = self.flist.pyshell
- if shell and shell.interp.debugger:
+ if self.break_set:
+ shell = self.flist.pyshell
shell.interp.debugger.clear_file_breaks(self)
WindowList.unregister_callback(self.postwindowsmenu)
if self.close_hook: