summaryrefslogtreecommitdiff
path: root/modules/gdnative/pluginscript
diff options
context:
space:
mode:
authorJohn Wigg <john.wigg@gmx.net>2020-04-13 14:30:56 +0200
committerCaptainProton42 <john.wigg@gmx.net>2020-04-29 11:31:01 +0200
commit4a82390aafdf464a2776b1df3a75b47783d42b04 (patch)
tree1f735029638bfbe2b459b4a8db2dd31e3f264246 /modules/gdnative/pluginscript
parentd4b211bb3d8c71dc48b933fe1cede6250069b857 (diff)
Limit undo stack size
The stack size of the undo history of a TextEdit was not limited leading to potential memory leaks when doing lots of operations on a TextEdit. This commit adds the option gui/common/text_edit_undo_stack_max_size to the project settings. The first element of the undo stack is popped if the stack's size exceeds this value ensuring limited memory usage. The default stack size setting is 1024. Fixes #37838.
Diffstat (limited to 'modules/gdnative/pluginscript')
0 files changed, 0 insertions, 0 deletions