aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 6cd4515c..7bfeb8db 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -878,6 +878,7 @@ impl Editor {
let view = self
.tree
.try_get(self.tree.focus)
+ .filter(|v| id == v.doc) // Different Document
.cloned()
.unwrap_or_else(|| View::new(id, self.config().gutters.clone()));
let view_id = self.tree.split(