diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 5960121a..d2c9e4a7 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -927,6 +927,7 @@ mod cmd {
 
             if let Ok(transaction) = transaction {
                 doc.apply(&transaction, view.id);
+                doc.append_changes_to_history(view.id);
             }
         }
     }