From 2da11d2d32b0b0211ec31e854e5ac997cbd1cd9f Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 26 Jun 2022 17:14:32 +0200 Subject: [PATCH] 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. --- r5dev/gameui/IConsole.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r5dev/gameui/IConsole.h b/r5dev/gameui/IConsole.h index aded4f0c..b0827a53 100644 --- a/r5dev/gameui/IConsole.h +++ b/r5dev/gameui/IConsole.h @@ -64,7 +64,8 @@ private: ImGuiInputTextFlags_CallbackHistory | ImGuiInputTextFlags_CallbackAlways | ImGuiInputTextFlags_CallbackEdit | - ImGuiInputTextFlags_EnterReturnsTrue; + ImGuiInputTextFlags_EnterReturnsTrue | + ImGuiInputTextFlags_NoUndoRedo; ImGuiWindowFlags m_nSuggestFlags = ImGuiWindowFlags_NoMove |