summaryrefslogtreecommitdiff
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-05-29 10:43:36 -0700
committerNed Deily <nad@acm.org>2012-05-29 10:43:36 -0700
commit3aee9416a0ef4ce385b655cb20c8ec31b839302f (patch)
tree03e6c21d541000cc15a50215b3c1ac6fdd73f823 /Lib/idlelib
parente1ad3dac3ddc64803b7744c9ba8ce71dbe74c913 (diff)
downloadcpython-git-3aee9416a0ef4ce385b655cb20c8ec31b839302f.tar.gz
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 6a01db0125..bec2191f5a 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