diff --git a/plugins/ui/source/ui/text_editor/editor.cpp b/plugins/ui/source/ui/text_editor/editor.cpp index ebddc67f5..b491e1ffa 100644 --- a/plugins/ui/source/ui/text_editor/editor.cpp +++ b/plugins/ui/source/ui/text_editor/editor.cpp @@ -962,7 +962,7 @@ namespace hex::ui { } void TextEditor::UndoAction::undo(TextEditor *editor) { - for (auto &record : std::ranges::reverse_view(m_records)) + for (auto &record : m_records | std::views::reverse) record.undo(editor); }