From 70ad392945f4883732c12988affefa516aa72052 Mon Sep 17 00:00:00 2001 From: sloumdrone Date: Fri, 31 May 2019 22:41:48 -0700 Subject: [PATCH] Simplified method code --- cui/screen.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cui/screen.go b/cui/screen.go index 2db53bc..2513a9c 100644 --- a/cui/screen.go +++ b/cui/screen.go @@ -69,12 +69,11 @@ func (s *Screen) ClearCommandArea() { // to redraw the full screen or just the content. On a resize // event, the full screen will always be redrawn. func (s *Screen) ReflashScreen(clearScreen bool) { + s.DrawAllWindows() + if clearScreen { - s.DrawAllWindows() s.DrawMsgBars() s.ClearCommandArea() - } else { - s.DrawAllWindows() } }