Disable undo/redo in command input

Currently causes undefined behavior, though it rarely crashes (I couldn't reproduce the crash, but do get undefined behavior by having random memory end up in the input field, or similar)
Problem probably is because we don't store any undo/redo buffer.
For now disabled, will revisit in the future.
This commit is contained in:
Kawe Mazidjatari 2022-06-26 17:14:32 +02:00
parent 5480d450a2
commit 2da11d2d32

View File

@ -64,7 +64,8 @@ private:
ImGuiInputTextFlags_CallbackHistory |
ImGuiInputTextFlags_CallbackAlways |
ImGuiInputTextFlags_CallbackEdit |
ImGuiInputTextFlags_EnterReturnsTrue;
ImGuiInputTextFlags_EnterReturnsTrue |
ImGuiInputTextFlags_NoUndoRedo;
ImGuiWindowFlags m_nSuggestFlags =
ImGuiWindowFlags_NoMove |