Closed eeeXun closed 7 months ago
I'm able to reproduce this. I'll see if I can fix it.
I see that the Ctrl-L key can also be used to select the entire text.
For some reason selecting via Ctrl-L doesn't seem to trigger the selection issue. Does that help you?
@naviji Hi, thanks for your help.
Actually, my problem is I want to use TextArea.Replace
instead of TextArea.SetText
to reserve the undo history. (I want to clear the text, textArea.Replace(0, len(textArea.GetText()), "")
)
When I call TextArea.Replace
, it produces the similar problem as mentioned above. So I trace the code and find this function calls TextArea.Select
.
That's why I report the bug in TextArea.Select
Hi everyone, thanks for reporting this bug. The latest commit should fix this.
Given the following code, you can press
C-q
to see the selection range. I want to select all text, sotextArea.Select(0, len(textArea.GetText()))
The bug is when your text is too long to fit on a line in terminal.
This could not be solved even I increase the value of second parameter in
Select
.textArea.Select(0, 10000)