on master help sign in
These TODOs have been resolved
b4fd314Blaž Hrastnik
helix-term/src/commands.rs+1−2
@@ -1472,7 +1472,6 @@ fn search_completions(cx: &mut Context, reg: Option<char>) -> Vec<String> {
1472 items.into_iter().cloned().collect()
1472 items.into_iter().cloned().collect()
1473}
1473}
1474
1474
1475−// TODO: use one function for search vs extend
1476fn search(cx: &mut Context) {
1475fn search(cx: &mut Context) {
1477 searcher(cx, Direction::Forward)
1476 searcher(cx, Direction::Forward)
1478}
1477}
@@ -1480,7 +1479,7 @@ fn search(cx: &mut Context) {
1480fn rsearch(cx: &mut Context) {
1479fn rsearch(cx: &mut Context) {
1481 searcher(cx, Direction::Backward)
1480 searcher(cx, Direction::Backward)
1482}
1481}
1483−// TODO: use one function for search vs extend
1482+
1484fn searcher(cx: &mut Context, direction: Direction) {
1483fn searcher(cx: &mut Context, direction: Direction) {
1485 let reg = cx.register.unwrap_or('/');
1484 let reg = cx.register.unwrap_or('/');
1486 let scrolloff = cx.editor.config.scrolloff;
1485 let scrolloff = cx.editor.config.scrolloff;
helix-term/src/commands/dap.rs−1
@@ -392,7 +392,6 @@ fn debug_parameter_prompt(
392}
392}
393
393
394pub fn dap_toggle_breakpoint(cx: &mut Context) {
394pub fn dap_toggle_breakpoint(cx: &mut Context) {
395− // TODO: accept line instead of current selection
396 let (view, doc) = current!(cx.editor);
395 let (view, doc) = current!(cx.editor);
397 let path = match doc.path() {
396 let path = match doc.path() {
398 Some(path) => path.clone(),
397 Some(path) => path.clone(),