diff options
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGUI/UndoStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/UndoStack.cpp b/Userland/Libraries/LibGUI/UndoStack.cpp index ea7aa2a125..11585e362d 100644 --- a/Userland/Libraries/LibGUI/UndoStack.cpp +++ b/Userland/Libraries/LibGUI/UndoStack.cpp @@ -62,7 +62,7 @@ void UndoStack::push(NonnullOwnPtr<Command> command) if (m_clean_index.has_value() && m_clean_index.value() > m_stack.size()) m_clean_index = {}; - if (!m_stack.is_empty()) { + if (!m_stack.is_empty() && is_current_modified()) { if (m_stack.last().merge_with(*command)) return; } |