Add option to advance cursor downward when toggling comment

Co-Authored-By: Julia <30666851+ForLoveOfCats@users.noreply.github.com>
This commit is contained in:
Joseph Lyons 2023-02-15 14:00:49 -05:00
parent fbd23986e3
commit 5fbc9736e5
4 changed files with 185 additions and 13 deletions

View file

@ -146,7 +146,7 @@ pub fn menus() -> Vec<Menu<'static>> {
MenuItem::Separator,
MenuItem::Action {
name: "Toggle Line Comment",
action: Box::new(editor::ToggleComments),
action: Box::new(editor::ToggleComments::default()),
},
MenuItem::Action {
name: "Emoji & Symbols",