From c0332bd935bb7c016278d43a526e588558a0cab1 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 3 Jun 2021 10:28:49 +0900 Subject: Fix split sizes getting out of sync with the terminal size, refs #69 --- helix-view/src/editor.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'helix-view/src/editor.rs') diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index e9f8b5a1..e7b25814 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -194,8 +194,9 @@ impl Editor { } pub fn resize(&mut self, area: Rect) { - self.tree.resize(area); - self._refresh(); + if self.tree.resize(area) { + self._refresh(); + }; } pub fn focus_next(&mut self) { -- cgit v1.2.3-70-g09d2