Follow naming conventions

pull/8675/merge^2
Gabor Pihaj 2024-07-06 16:30:25 +01:00
parent d611f7f264
commit 4f1d35dfbe
No known key found for this signature in database
GPG Key ID: 369D85A32437F62D
1 changed files with 8 additions and 8 deletions

View File

@ -693,10 +693,10 @@ fn load_editor_api(engine: &mut Engine, generate_sources: bool) {
let mut module = BuiltInModule::new("helix/core/editor"); let mut module = BuiltInModule::new("helix/core/editor");
// Types // Types
module.register_fn("Action::Load", || Action::Load); module.register_fn("Action/Load", || Action::Load);
module.register_fn("Action::Replace", || Action::Replace); module.register_fn("Action/Replace", || Action::Replace);
module.register_fn("Action::HorizontalSplit", || Action::HorizontalSplit); module.register_fn("Action/HorizontalSplit", || Action::HorizontalSplit);
module.register_fn("Action::VerticalSplit", || Action::VerticalSplit); module.register_fn("Action/VerticalSplit", || Action::VerticalSplit);
// Arity 0 // Arity 0
module.register_fn("editor-focus", cx_current_focus); 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/Load");
template_function_type_constructor("Action::Replace"); template_function_type_constructor("Action/Replace");
template_function_type_constructor("Action::HorizontalSplit"); template_function_type_constructor("Action/HorizontalSplit");
template_function_type_constructor("Action::VerticalSplit"); template_function_type_constructor("Action/VerticalSplit");
let mut template_function_arity_0 = |name: &str| { let mut template_function_arity_0 = |name: &str| {
builtin_editor_command_module.push_str(&format!( builtin_editor_command_module.push_str(&format!(