From b46bad09bd8623033e45cc9c3eabe5d81f465aad Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 21 Jul 2019 12:53:28 +0200 Subject: [PATCH] ui/app: remove redundant redraw check Now that the input router triggers a redraw when a focus event is added, it is no longer necessary to check for that condition in Window. Signed-off-by: Elias Naur --- ui/app/window.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ui/app/window.go b/ui/app/window.go index bac4fa12..04341597 100644 --- a/ui/app/window.go +++ b/ui/app/window.go @@ -107,10 +107,6 @@ func (w *Window) setTextInput(s key.TextInputState) { if s != w.inputState && (s == key.TextInputClose || s == key.TextInputOpen) { w.driver.setTextInput(s) } - if s == key.TextInputFocus { - w.setNextFrame(time.Time{}) - w.updateAnimation() - } w.inputState = s }