mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
reload-all: Only update viewport when view focuses on the doc (#4901)
This commit is contained in:
parent
fc811726e0
commit
f0f295a667
@ -1070,8 +1070,9 @@ fn reload_all(
|
||||
|
||||
for view_id in view_ids {
|
||||
let view = view_mut!(cx.editor, view_id);
|
||||
|
||||
view.ensure_cursor_in_view(doc, scrolloff);
|
||||
if view.doc.eq(&doc_id) {
|
||||
view.ensure_cursor_in_view(doc, scrolloff);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user