aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-18 06:20:28 +0000
committerBlaž Hrastnik2021-03-18 06:20:28 +0000
commit175d38c88cf96dfb6744cb260abf2e8f5c1c48b9 (patch)
tree31188d48642c623eadc0280fdf48cff93562059c /helix-term
parentc331721565a00850849e0a99fd325ae281bfb800 (diff)
toggle_comments needs to append to history.
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 6165c4c1..97edaf66 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