aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/tree.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/tree.rs')
-rw-r--r--helix-view/src/tree.rs21
1 files changed, 17 insertions, 4 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs
index 99cbe0f9..b068f4c7 100644
--- a/helix-view/src/tree.rs
+++ b/helix-view/src/tree.rs
@@ -568,6 +568,7 @@ impl<'a> Iterator for Traverse<'a> {
#[cfg(test)]
mod test {
use super::*;
+ use crate::editor::GutterType;
use crate::DocumentId;
#[test]
@@ -578,22 +579,34 @@ mod test {
width: 180,
height: 80,
});
- let mut view = View::new(DocumentId::default());
+ let mut view = View::new(
+ DocumentId::default(),
+ vec![GutterType::Diagnostics, GutterType::LineNumbers],
+ );
view.area = Rect::new(0, 0, 180, 80);
tree.insert(view);
let l0 = tree.focus;
- let view = View::new(DocumentId::default());
+ let view = View::new(
+ DocumentId::default(),
+ vec![GutterType::Diagnostics, GutterType::LineNumbers],
+ );
tree.split(view, Layout::Vertical);
let r0 = tree.focus;
tree.focus = l0;
- let view = View::new(DocumentId::default());
+ let view = View::new(
+ DocumentId::default(),
+ vec![GutterType::Diagnostics, GutterType::LineNumbers],
+ );
tree.split(view, Layout::Horizontal);
let l1 = tree.focus;
tree.focus = l0;
- let view = View::new(DocumentId::default());
+ let view = View::new(
+ DocumentId::default(),
+ vec![GutterType::Diagnostics, GutterType::LineNumbers],
+ );
tree.split(view, Layout::Vertical);
let l2 = tree.focus;