Unnamed repository; edit this file 'description' to name the repository.
| -rw-r--r-- | helix-term/src/commands.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 9dc1cd33..7e5735cf 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -7017,7 +7017,8 @@ fn jump_to_label(cx: &mut Context, labels: Vec<Range>, behaviour: Movement) { } else { range.with_direction(Direction::Forward) }; - let (view, doc) = current!(cx.editor); + let doc = doc_mut!(cx.editor, &doc); + let view = view_mut!(cx.editor, view_id); push_jump(view, doc); doc.set_selection(view_id, range.into()); } |