From b1d3a01a719a1b905dc2a1f4416bc361dd2020da Mon Sep 17 00:00:00 2001 From: Amos <48657826+Mauler125@users.noreply.github.com> Date: Wed, 19 Jan 2022 23:12:43 +0100 Subject: [PATCH] Reset AutoComplete vars when "Submit" button is clicked --- r5dev/gameui/IConsole.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r5dev/gameui/IConsole.cpp b/r5dev/gameui/IConsole.cpp index 26935c49..a5fbe992 100644 --- a/r5dev/gameui/IConsole.cpp +++ b/r5dev/gameui/IConsole.cpp @@ -221,6 +221,8 @@ void CConsole::BasePanel(bool* bDraw) memset(m_szInputBuf, '\0', 1); } m_bReclaimFocus = true; + m_nSuggestPos = -1; + m_bSuggestActive = false; } ImGui::End(); }