aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-24 13:48:38 +0000
committerDmitry Sharshakov2021-08-24 13:48:38 +0000
commit31212e133dd00900fc1da6eeff97c6691212d789 (patch)
treed8dcadc1100cbac1de2e57708c2ca47ee2c3fda7 /helix-term
parent1041a5bb07457938ecfcd7da1548adf93def726b (diff)
Rename functions
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 7e685f8b..b48681cc 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1924,7 +1924,7 @@ mod cmd {
Ok(())
}
- fn impl_edit_breakpoint(
+ fn edit_breakpoint_impl(
cx: &mut compositor::Context,
condition: Option<String>,
log_message: Option<String>,
@@ -2002,7 +2002,7 @@ mod cmd {
Some(condition)
};
- impl_edit_breakpoint(cx, condition, None);
+ edit_breakpoint_impl(cx, condition, None);
Ok(())
}
@@ -2018,7 +2018,7 @@ mod cmd {
Some(log_message)
};
- impl_edit_breakpoint(cx, None, log_message);
+ edit_breakpoint_impl(cx, None, log_message);
Ok(())
}
@@ -2027,7 +2027,7 @@ mod cmd {
args: &[&str],
_event: PromptEvent,
) -> anyhow::Result<()> {
- impl_dap_start(&mut cx.editor, args.get(0).map(|name| name.to_string()));
+ dap_start_impl(&mut cx.editor, args.get(0).map(|name| name.to_string()));
// TODO templating
Ok(())
}
@@ -4402,7 +4402,7 @@ fn suspend(_cx: &mut Context) {
}
// DAP
-fn impl_dap_start(editor: &mut Editor, name: Option<String>) {
+fn dap_start_impl(editor: &mut Editor, name: Option<String>) {
use helix_dap::Client;
use helix_lsp::block_on;
use serde_json::to_value;
@@ -4470,7 +4470,7 @@ fn impl_dap_start(editor: &mut Editor, name: Option<String>) {
fn dap_start(cx: &mut Context) {
// TODO: check that first config does not have templates
// which cannot be handled with a shortcut
- impl_dap_start(&mut cx.editor, None);
+ dap_start_impl(&mut cx.editor, None);
}
fn dap_toggle_breakpoint(cx: &mut Context) {