|
|
@ -737,17 +737,15 @@ impl EditorView {
|
|
|
|
let completions = cxt.editor.debug_config_completions.clone().unwrap();
|
|
|
|
let completions = cxt.editor.debug_config_completions.clone().unwrap();
|
|
|
|
let noop = |_input: &str| Vec::new();
|
|
|
|
let noop = |_input: &str| Vec::new();
|
|
|
|
let completer = match completions.get(i) {
|
|
|
|
let completer = match completions.get(i) {
|
|
|
|
Some(Some(completion)) => {
|
|
|
|
Some(Some(completion)) => match completion.get(0).map(|x| x.as_str()) {
|
|
|
|
match completion.get(0).and_then(|x| Some(x.as_str())) {
|
|
|
|
Some("filename") => super::completers::filename,
|
|
|
|
Some("filename") => super::completers::filename,
|
|
|
|
Some("directory") => super::completers::directory,
|
|
|
|
Some("directory") => super::completers::directory,
|
|
|
|
Some(complete) => {
|
|
|
|
Some(complete) => {
|
|
|
|
warn!("Unknown debug config autocompleter: {}", complete);
|
|
|
|
warn!("Unknown debug config autocompleter: {}", complete);
|
|
|
|
noop
|
|
|
|
noop
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
None => noop,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
None => noop,
|
|
|
|
|
|
|
|
},
|
|
|
|
_ => noop,
|
|
|
|
_ => noop,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
let prompt = Prompt::new(
|
|
|
|
let prompt = Prompt::new(
|
|
|
|