aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-07 09:15:11 +0000
committerBlaž Hrastnik2021-11-07 09:15:17 +0000
commitfd9b826f2c124ce1983191dd632f3e9ca37ba74c (patch)
treee604af6d932aefdff28ed81eb73d975a373144d0 /helix-term
parent5938ab1bf1220913f487155ba7e1d9057d03f73e (diff)
dap: Inline empty completer
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands/dap.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index de1b2078..7d438a30 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -364,11 +364,10 @@ fn debug_parameter_prompt(
_ => "".to_owned(),
};
- let noop = |_input: &str| Vec::new();
let completer = match &field_type[..] {
"filename" => ui::completers::filename,
"directory" => ui::completers::directory,
- _ => noop,
+ _ => |_input: &str| Vec::new(),
};
Prompt::new(
format!("{}: ", name).into(),