]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-71880: Allow editing the last cell in curses.textpad.Textbox (GH-152363)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 27 Jun 2026 07:08:04 +0000 (10:08 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Jun 2026 07:08:04 +0000 (10:08 +0300)
commit11b394381f30815a8ad0123afb0a55e7a0369f79
treede9fe95669e0bccc7e1a32660dc5fa154a6f4665
parent1812162f81ef034616294ec9ee53e951f99c9582
gh-71880: Allow editing the last cell in curses.textpad.Textbox (GH-152363)

Textbox.edit() ignored typing in the lower-right cell of the window.  It is
now written with insch(), which fills the cell without moving the cursor out
of the window (addch() there raises an error and scrolls a scrollable window).

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Lib/curses/textpad.py
Lib/test/test_curses.py
Misc/NEWS.d/next/Library/2026-06-26-23-56-40.gh-issue-71880.782D31.rst [new file with mode: 0644]