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(); } } }