From 433c12a17a6e28dd267c76064895445594ed4ff8 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 12 Mar 2025 01:54:52 +0300 Subject: [PATCH] refresh syntax on undo/redo TextBox actions --- src/graphics/ui/elements/TextBox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/ui/elements/TextBox.cpp b/src/graphics/ui/elements/TextBox.cpp index 88b0c86f..2510cef0 100644 --- a/src/graphics/ui/elements/TextBox.cpp +++ b/src/graphics/ui/elements/TextBox.cpp @@ -870,9 +870,11 @@ void TextBox::keyPressed(keycode key) { } if (key == keycode::Z) { historian->undo(); + refreshSyntax(); } if (key == keycode::Y) { historian->redo(); + refreshSyntax(); } } }