diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 6165c4c13..97edaf666 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1475,6 +1475,7 @@ pub fn toggle_comments(cx: &mut Context) { let transaction = comment::toggle_line_comments(doc.text(), doc.selection()); doc.apply(&transaction); + doc.append_changes_to_history(); } // tree sitter node selection