mirror of https://github.com/helix-editor/helix
toggle_comments needs to append to history.
parent
c331721565
commit
175d38c88c
|
@ -1475,6 +1475,7 @@ pub fn toggle_comments(cx: &mut Context) {
|
||||||
let transaction = comment::toggle_line_comments(doc.text(), doc.selection());
|
let transaction = comment::toggle_line_comments(doc.text(), doc.selection());
|
||||||
|
|
||||||
doc.apply(&transaction);
|
doc.apply(&transaction);
|
||||||
|
doc.append_changes_to_history();
|
||||||
}
|
}
|
||||||
|
|
||||||
// tree sitter node selection
|
// tree sitter node selection
|
||||||
|
|
Loading…
Reference in New Issue