aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-12-01 03:56:41 +0000
committerBlaž Hrastnik2021-12-01 03:56:41 +0000
commitb4fd3148e335a9d9ebcdfbb013df635e039e4bb1 (patch)
tree1edb1ebdc521bb6c00c34eea6da1b709611f2c3f
parent96ae5897a1c7b10a2f03e8837e8a2a6ea4c18fa4 (diff)
These TODOs have been resolved
-rw-r--r--helix-term/src/commands.rs3
-rw-r--r--helix-term/src/commands/dap.rs1
2 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index 3d500405..6a611edb 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1472,7 +1472,6 @@ fn search_completions(cx: &mut Context, reg: Option<char>) -> Vec<String> {
items.into_iter().cloned().collect()
}
-// TODO: use one function for search vs extend
fn search(cx: &mut Context) {
searcher(cx, Direction::Forward)
}
@@ -1480,7 +1479,7 @@ fn search(cx: &mut Context) {
fn rsearch(cx: &mut Context) {
searcher(cx, Direction::Backward)
}
-// TODO: use one function for search vs extend
+
fn searcher(cx: &mut Context, direction: Direction) {
let reg = cx.register.unwrap_or('/');
let scrolloff = cx.editor.config.scrolloff;
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index eee42244..6e89586a 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -392,7 +392,6 @@ fn debug_parameter_prompt(
}
pub fn dap_toggle_breakpoint(cx: &mut Context) {
- // TODO: accept line instead of current selection
let (view, doc) = current!(cx.editor);
let path = match doc.path() {
Some(path) => path.clone(),