Skip to content

Commit

Permalink
update view only when doc id matches
Browse files Browse the repository at this point in the history
  • Loading branch information
mangas committed Nov 26, 2022
1 parent 8529d75 commit 8b1104c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8b1104c

Please sign in to comment.