diff options
author | Skyler Hawthorne | 2022-04-26 23:18:20 +0000 |
---|---|---|
committer | Skyler Hawthorne | 2022-06-19 03:57:45 +0000 |
commit | ed950fcc56c480dc5a54c7e07918dca9192db200 (patch) | |
tree | 453e6f56c72d8c29fe9b1e39361a13d19c9722b1 /helix-view/src/handlers | |
parent | 1533f489340fb63eee31c12122d6233cb5f6abaf (diff) |
Add more context; Editor::open doesn't need to own path
Diffstat (limited to 'helix-view/src/handlers')
-rw-r--r-- | helix-view/src/handlers/dap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/handlers/dap.rs b/helix-view/src/handlers/dap.rs index b17ca353..ae1ae64c 100644 --- a/helix-view/src/handlers/dap.rs +++ b/helix-view/src/handlers/dap.rs @@ -62,7 +62,7 @@ pub fn jump_to_stack_frame(editor: &mut Editor, frame: &helix_dap::StackFrame) { return; }; - if let Err(e) = editor.open(path, Action::Replace) { + if let Err(e) = editor.open(&path, Action::Replace) { editor.set_error(format!("Unable to jump to stack frame: {}", e)); return; } |