You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When replacing many instances of text with multi caret editing, if you replace it by typing too many characters the undo stack breaks with an error message scene/gui/text_edit.cpp:4002 - Condition "!undo_stack_pos->prev()" is true. Breaking.
Steps to reproduce
Multi caret select a lot of text and replace it by typing new text. Attempt to undo.
Godot_v4.1-stable_win64_2023-08-14_11-35-24.mp4
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered:
By default it's 1024. Each individual character change counts as an action. So if you've got 20 line multi carat, you can type just over 50 characters in one go before you hit the limit and undoing the operations results in an error. (20 x 50 =1000)
You can raise this limit (though you may need to restart to take effect) and it'll be able to take more characters. I'm not sure if this counts as a solution.
Godot version
v4.1.stable.official [9704596]
System information
Windows 10
Issue description
When replacing many instances of text with multi caret editing, if you replace it by typing too many characters the undo stack breaks with an error message
scene/gui/text_edit.cpp:4002 - Condition "!undo_stack_pos->prev()" is true. Breaking.
Steps to reproduce
Multi caret select a lot of text and replace it by typing new text. Attempt to undo.
Godot_v4.1-stable_win64_2023-08-14_11-35-24.mp4
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: