Skip to content

Commit 47290e7

Browse files
bpo-35770: Fix off-by-1 error. (GH-11618)
(cherry picked from commit 2cf1dda) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent a01e235 commit 47290e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/idlelib/macosx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def overrideRootMenu(root, flist):
178178
del mainmenu.menudefs[-1][1][0:2]
179179
# Remove the 'Configure Idle' entry from the options menu, it is in the
180180
# application menu as 'Preferences'
181-
del mainmenu.menudefs[-3][1][0:1]
181+
del mainmenu.menudefs[-3][1][0:2]
182182
menubar = Menu(root)
183183
root.configure(menu=menubar)
184184
menudict = {}

0 commit comments

Comments
 (0)