summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-05-29 17:43:36 (GMT)
committerNed Deily <nad@acm.org>2012-05-29 17:43:36 (GMT)
commit3aee9416a0ef4ce385b655cb20c8ec31b839302f (patch)
tree03e6c21d541000cc15a50215b3c1ac6fdd73f823 /Lib/idlelib
parente1ad3dac3ddc64803b7744c9ba8ce71dbe74c913 (diff)
downloadcpython-3aee9416a0ef4ce385b655cb20c8ec31b839302f.zip
cpython-3aee9416a0ef4ce385b655cb20c8ec31b839302f.tar.gz
cpython-3aee9416a0ef4ce385b655cb20c8ec31b839302f.tar.bz2
Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/EditorWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py
index 6a01db0..bec2191 100644
--- a/Lib/idlelib/EditorWindow.py
+++ b/Lib/idlelib/EditorWindow.py
@@ -860,7 +860,7 @@ class EditorWindow(object):
# for each edit window instance, construct the recent files menu
for instance in self.top.instance_dict:
menu = instance.recent_files_menu
- menu.delete(1, END) # clear, and rebuild:
+ menu.delete(0, END) # clear, and rebuild:
for i, file_name in enumerate(rf_list):
file_name = file_name.rstrip() # zap \n
# make unicode string to display non-ASCII chars correctly