diff options
Diffstat (limited to 'helix-view/src/tree.rs')
-rw-r--r-- | helix-view/src/tree.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/helix-view/src/tree.rs b/helix-view/src/tree.rs index b7c99e16..5b56156f 100644 --- a/helix-view/src/tree.rs +++ b/helix-view/src/tree.rs @@ -293,9 +293,13 @@ impl Tree { } } - pub fn resize(&mut self, area: Rect) { - self.area = area; - self.recalculate(); + pub fn resize(&mut self, area: Rect) -> bool { + if self.area != area { + self.area = area; + self.recalculate(); + return true; + } + false } pub fn recalculate(&mut self) { |