From 8b1104ce9c83896dfc1ea77f4d8d9e6afe40f017 Mon Sep 17 00:00:00 2001 From: Filipe Azevedo Date: Sat, 26 Nov 2022 12:31:34 +0000 Subject: [PATCH] update view only when doc id matches --- helix-term/src/commands/typed.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helix-term/src/commands/typed.rs b/helix-term/src/commands/typed.rs index 475f14d1de3c1..8f69a110b7ead 100644 --- a/helix-term/src/commands/typed.rs +++ b/helix-term/src/commands/typed.rs @@ -1070,6 +1070,9 @@ fn reload_all( for view_id in view_ids { let view = view_mut!(cx.editor, view_id); + if !view.doc.eq(&doc_id) { + continue; + } view.ensure_cursor_in_view(doc, scrolloff); }