From 4f1d35dfbe027af0914050ecd457447372494cde Mon Sep 17 00:00:00 2001 From: Gabor Pihaj Date: Sat, 6 Jul 2024 16:30:25 +0100 Subject: [PATCH] Follow naming conventions --- helix-term/src/commands/engine/steel.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/helix-term/src/commands/engine/steel.rs b/helix-term/src/commands/engine/steel.rs index e18b87e68..4ff3fde8b 100644 --- a/helix-term/src/commands/engine/steel.rs +++ b/helix-term/src/commands/engine/steel.rs @@ -693,10 +693,10 @@ fn load_editor_api(engine: &mut Engine, generate_sources: bool) { let mut module = BuiltInModule::new("helix/core/editor"); // Types - module.register_fn("Action::Load", || Action::Load); - module.register_fn("Action::Replace", || Action::Replace); - module.register_fn("Action::HorizontalSplit", || Action::HorizontalSplit); - module.register_fn("Action::VerticalSplit", || Action::VerticalSplit); + module.register_fn("Action/Load", || Action::Load); + module.register_fn("Action/Replace", || Action::Replace); + module.register_fn("Action/HorizontalSplit", || Action::HorizontalSplit); + module.register_fn("Action/VerticalSplit", || Action::VerticalSplit); // Arity 0 module.register_fn("editor-focus", cx_current_focus); @@ -747,10 +747,10 @@ fn load_editor_api(engine: &mut Engine, generate_sources: bool) { )); }; - template_function_type_constructor("Action::Load"); - template_function_type_constructor("Action::Replace"); - template_function_type_constructor("Action::HorizontalSplit"); - template_function_type_constructor("Action::VerticalSplit"); + template_function_type_constructor("Action/Load"); + template_function_type_constructor("Action/Replace"); + template_function_type_constructor("Action/HorizontalSplit"); + template_function_type_constructor("Action/VerticalSplit"); let mut template_function_arity_0 = |name: &str| { builtin_editor_command_module.push_str(&format!(