diff options
Diffstat (limited to 'ui/filetree_controller.go')
-rw-r--r-- | ui/filetree_controller.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/filetree_controller.go b/ui/filetree_controller.go index 29cd389..2ce8573 100644 --- a/ui/filetree_controller.go +++ b/ui/filetree_controller.go @@ -331,9 +331,12 @@ func filterRegex() *regexp.Regexp { } // onLayoutChange is called by the UI framework to inform the view-model of the new screen dimensions -func (controller *FileTreeController) onLayoutChange() error { +func (controller *FileTreeController) onLayoutChange(resized bool) error { controller.Update() - return controller.Render() + if resized { + return controller.Render() + } + return nil } // Update refreshes the state objects for future rendering. |