aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/CellBuffer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/CellBuffer.cxx')
-rw-r--r--src/CellBuffer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx
index be018bbd6..14b2e3212 100644
--- a/src/CellBuffer.cxx
+++ b/src/CellBuffer.cxx
@@ -1397,7 +1397,7 @@ void CellBuffer::PerformRedoStep() {
void CellBuffer::ChangeHistorySet(bool set) {
if (set) {
- if (!changeHistory) {
+ if (!changeHistory && !uh.CanUndo()) {
changeHistory = std::make_unique<ChangeHistory>(Length());
}
} else {