classification
Title: C-k does not work for curses.textpad.Textbox
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: akuchling Nosy List: akuchling, stefanheimann (2)
Priority: normal Keywords:

Created on 2004-10-17 19:51 by stefanheimann, last changed 2004-10-19 19:50 by akuchling.

Files
File name Uploaded Description Edit Remove
ctrl-k.patch stefanheimann, 2004-10-17 19:52
Messages (2)
msg22729 - (view) Author: Stefan Wehr (stefanheimann) Date: 2004-10-17 19:51
The bug can be reproduced by starting the textpad
module directly (by executing 'python textpad.py'
inside the curses directory). 
The you should type:

1
2
3
C-a
C-k

You would expected an empty textbox (because you first
enter the string '123', the go the the beginning of the
line and then delete until the end of the line). But
the textbox contains the text '12'.

My Python version is 2.3.3, a patch is attached.
msg22730 - (view) Author: A.M. Kuchling (akuchling) Date: 2004-10-19 19:50
Logged In: YES 
user_id=11375

Well spotted; thanks!  I've applied your patch to 2.4-CVS
and to the 2.3-maint branch, so the fix should be in Python
2.3.5, whenever it gets released.
History
Date User Action Args
2004-10-17 19:51:47stefanheimanncreate