Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
johnzhou721 wants to merge34 commits intopython:main
base:main
Choose a base branch
Loading
fromjohnzhou721:idledos
Open
Changes from1 commit
Commits
Show all changes
34 commits
Select commitHold shift + click to select a range
e5f4260
fix a dos
johnzhou721May 29, 2025
aa5b5a8
📜🤖 Added by blurb_it.
blurb-it[bot]May 29, 2025
edfa904
Update Misc/NEWS.d/next/Security/2025-05-29-03-24-18.gh-issue-134873.…
johnzhou721May 30, 2025
2090baf
another dos and also simplify
johnzhou721May 30, 2025
d2838a5
grumble
johnzhou721May 30, 2025
83bafff
have condition
johnzhou721May 30, 2025
660fbd3
significant refactor
johnzhou721May 30, 2025
15f821a
Update Lib/idlelib/editor.py
johnzhou721Jun 1, 2025
6a59e50
rem blank line
johnzhou721Jun 1, 2025
546f19b
write some tests
johnzhou721Jun 1, 2025
605373b
static
johnzhou721Jun 1, 2025
9625fcc
linter
johnzhou721Jun 1, 2025
d0017b6
get this right
johnzhou721Jun 1, 2025
88c318c
write more tests
johnzhou721Jun 1, 2025
6323ab8
unconditionally remove last character, tests
johnzhou721Jun 1, 2025
01921fc
more organized testing also speedup test
johnzhou721Jun 1, 2025
5f9bb55
grumble
johnzhou721Jun 1, 2025
a087395
fix some tests and add some new ones
johnzhou721Jun 1, 2025
6604a73
fix everythign
johnzhou721Jun 1, 2025
3f0abfb
precommit
johnzhou721Jun 1, 2025
1e9bdfd
Merge branch 'main' into idledos
johnzhou721Jun 12, 2025
0b3c5b6
Merge branch 'main' into idledos
johnzhou721Jun 14, 2025
338e2fc
Merge branch 'main' into idledos
johnzhou721Jun 15, 2025
7c92d9a
Apply suggestions from code review
terryjreedyJun 28, 2025
e1fb6b9
Apply suggestions from code review
terryjreedyJun 28, 2025
7b67419
Update Lib/idlelib/idle_test/test_editor.py
terryjreedyJun 28, 2025
1037bea
Delete Misc/NEWS.d/next/Security/2025-05-29-03-24-18.gh-issue-134873.…
terryjreedyJun 28, 2025
e505938
📜🤖 Added by blurb_it.
blurb-it[bot]Jun 28, 2025
283a27a
Apply suggestions from code review
johnzhou721Jun 29, 2025
d58bd18
update news
johnzhou721Jun 29, 2025
560e06b
Update News3.txt
johnzhou721Jun 29, 2025
a09c458
Delete Misc/NEWS.d/next/IDLE/2025-06-28-13-29-52.gh-issue-136061.EQYu…
johnzhou721Jun 30, 2025
a082fbf
Update Lib/idlelib/News3.txt
johnzhou721Jun 30, 2025
4c1268f
Update Lib/idlelib/editor.py
johnzhou721Jun 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
significant refactor
  • Loading branch information
@johnzhou721
johnzhou721 committedMay 30, 2025
commit660fbd388c9154ed7f2e56ee9902198f1599c1be
13 changes: 10 additions & 3 deletionsLib/idlelib/editor.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1368,11 +1368,18 @@ def smart_backspace_event(self, event):

# Debug prompt is multilined....
ncharsdeleted = 0
have = len(chars.expandtabs(tabwidth))
for i in range(len(chars) - 1, -1, -1):
have = len(chars.expandtabs(tabwidth))
if have <= want or chars[i] not in " \t":
break
# ``Delete'' chars[i], and subtract count
# (since redoing expandtabs is O(n))
ncharsdeleted += 1
if chars[i] == '\t':
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()
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp