From be1f711fda99d12a2589ec7ac4ea350dc9d7e1d6 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 10 Jan 2023 13:27:16 +0100 Subject: [PATCH] fix: Pattern editor not scrolling all the way to the right when typing --- lib/external/imgui/source/TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/external/imgui/source/TextEditor.cpp b/lib/external/imgui/source/TextEditor.cpp index 078e35a4a..999d19cfb 100644 --- a/lib/external/imgui/source/TextEditor.cpp +++ b/lib/external/imgui/source/TextEditor.cpp @@ -2123,7 +2123,7 @@ void TextEditor::EnsureCursorVisible() { if (len + mTextStart < left + 4) ImGui::SetScrollX(std::max(0.0f, len + mTextStart - 4)); if (len + mTextStart > right - 4) - ImGui::SetScrollX(std::max(0.0f, len + mTextStart + 4 - width)); + ImGui::SetScrollX(std::max(0.0f, len + mTextStart + 4)); } int TextEditor::GetPageSize() const {