Skip to content

Commit

Permalink
get view by view! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
estin committed Dec 2, 2022
1 parent a0af0be commit 14b74aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ impl Editor {
}
}

let view = self.tree.get_mut(view_id);
let view = view!(self, view_id);
let doc = doc_mut!(self, &view.doc);
doc.mark_as_focused();
}
Expand Down

0 comments on commit 14b74aa

Please sign in to comment.