From 4e1b3b12f3f5626f1ab371d99fecd23e2f5b8603 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 17 Feb 2022 12:22:30 +0900 Subject: Refactor symbol picker to share code --- helix-term/src/commands/dap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/src/commands') diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index 925c65c1..4de3134b 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -792,7 +792,7 @@ pub fn dap_switch_stack_frame(cx: &mut Context) { let picker = FilePicker::new( frames, - |frame| frame.name.clone().into(), // TODO: include thread_states in the label + |frame| frame.name.as_str().into(), // TODO: include thread_states in the label move |cx, frame, _action| { let debugger = debugger!(cx.editor); // TODO: this should be simpler to find -- cgit v1.2.3-70-g09d2