From 27aa10a18c3e35d01500b51ff8aa4e65c51aa26a Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 15 May 2023 18:25:43 -0700 Subject: [PATCH] Fix regression: Editing script disables mute buttons This is quite a simple bug: If you edit a script, then close it, you will no longer be able to use the mute buttons (N and M). The problem here is that in 2.3, key.disabletextentry() was called when closing a script. However, #944 removed the call. Therefore, a regression. --- desktop_version/src/Editor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop_version/src/Editor.cpp b/desktop_version/src/Editor.cpp index 2bb89a4a..a936f9ba 100644 --- a/desktop_version/src/Editor.cpp +++ b/desktop_version/src/Editor.cpp @@ -3395,6 +3395,8 @@ void editorinput(void) // Alright, now re-add the script. ed.create_script(ed.current_script, ed.script_buffer); + + key.disabletextentry(); } if (ed.keydelay > 0) ed.keydelay--;