aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-30 08:52:39 +0000
committerBlaž Hrastnik2021-11-30 08:56:00 +0000
commit8ffafb826faa75c76f74af3350d73adceb24e81d (patch)
treedb28dd13d6f951de222771db830f3ed21f955b23 /helix-term/src/commands.rs
parent3633f85b382d6f3e6324d08d880a8466aee67fa1 (diff)
dap: Rewrite breakpoints so that there's a single set maintained
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r--helix-term/src/commands.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 084479cc..3d500405 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1897,8 +1897,8 @@ fn append_mode(cx: &mut Context) {
mod cmd {
use super::*;
- use helix_dap::SourceBreakpoint;
use helix_view::editor::Action;
+ use helix_view::editor::Breakpoint;
use ui::completers::{self, Completer};
#[derive(Clone)]
@@ -2563,9 +2563,7 @@ mod cmd {
Ok(())
}
- pub fn get_breakpoint_at_current_line(
- editor: &mut Editor,
- ) -> Option<(usize, SourceBreakpoint)> {
+ pub fn get_breakpoint_at_current_line(editor: &mut Editor) -> Option<(usize, Breakpoint)> {
let (view, doc) = current!(editor);
let text = doc.text().slice(..);