Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_line () method in TextEdit leads to collapse. #41967

Closed
OlexiyKravchuk opened this issue Sep 10, 2020 · 1 comment · Fixed by #42874
Closed

set_line () method in TextEdit leads to collapse. #41967

OlexiyKravchuk opened this issue Sep 10, 2020 · 1 comment · Fixed by #42874
Milestone

Comments

@OlexiyKravchuk
Copy link

Godot version:
Godot_v3.2.2-stable_win64

OS/device including version:
Win7 (GLES2)

Issue description:
set_line () method in TextEdit leads to collapse.


var TE = $"TextEdit"
TE.set_line(TE.get_line_count(), "....STR....")
@OlexiyKravchuk
Copy link
Author

I think I figured out that the reason is that tab.get_line_count () is always greater than zero.
But if you specify in the parameter the line number in the set_line () method, the number of which is not, then this failure will occur.
That is, more secure processing is needed in case the specified line is not present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants