Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-136061: IDLE - update code in editor.Editor.load_extension#134874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
e5f4260
aa5b5a8
edfa904
2090baf
d2838a5
83bafff
660fbd3
15f821a
6a59e50
546f19b
605373b
9625fcc
d0017b6
88c318c
6323ab8
01921fc
5f9bb55
a087395
6604a73
3f0abfb
1e9bdfd
0b3c5b6
338e2fc
7c92d9a
e1fb6b9
7b67419
1037bea
e505938
283a27a
d58bd18
560e06b
a09c458
a082fbf
4c1268f
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1368,11 +1368,18 @@ def smart_backspace_event(self, event): | ||
johnzhou721 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
# Debug prompt is multilined.... | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
ncharsdeleted = 0 | ||
have = len(chars.expandtabs(tabwidth)) | ||
for i in range(len(chars) - 1, -1, -1): | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
# ``Delete'' chars[i], and subtract count | ||
# (since redoing expandtabs is O(n)) | ||
ncharsdeleted += 1 | ||
if chars[i] == '\t': | ||
johnzhou721 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
have -= tabwidth | ||
else: | ||
have -= 1 | ||
if have <= want or chars[i-1] not in " \t": | ||
break | ||
# Perform the actual removal | ||
chars = chars[:len(chars) - ncharsdeleted] | ||
text.undo_block_start() | ||
Uh oh!
There was an error while loading.Please reload this page.