From 14b74aaf477736e691ffcd75bbe44879ebc8cead Mon Sep 17 00:00:00 2001 From: Evgeniy Tatarkin Date: Tue, 8 Nov 2022 09:13:13 +0300 Subject: [PATCH] get view by view! macro --- helix-view/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 56303d8777ca..e10a9d2cd725 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -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(); }