Skip to content

Commit

Permalink
fixup! WIP: split out functions, behave more like vim splits
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Nov 12, 2021
1 parent 68d0fa0 commit d7cb224
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ impl Editor {
self.replace_document_in_view(view_id, doc_id);
}

if !self.tree.views().any(|(view, _)| view.doc == doc_id) {
self.documents.remove(&doc_id);
}
debug_assert!(!self.tree.views().any(|(view, _)| view.doc == doc_id));
self.documents.remove(&doc_id);
self._refresh();

Ok(())
}
Expand Down

0 comments on commit d7cb224

Please sign in to comment.