diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ui/textinput.go | 1 | ||||
-rw-r--r-- | lib/ui/ui.go | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index c2acd546..8880c4c3 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -318,7 +318,6 @@ func (ti *TextInput) showCompletions() { } ti.completions, ti.prefix = ti.tabcomplete(ti.StringLeft()) ti.completeIndex = -1 - ti.Invalidate() QueueRedraw() } diff --git a/lib/ui/ui.go b/lib/ui/ui.go index ea181d33..bbaa3a29 100644 --- a/lib/ui/ui.go +++ b/lib/ui/ui.go @@ -17,9 +17,10 @@ type AercFuncMsg struct { Func func() } -// QueueRedraw sends a nil message into the MsgChannel. Nothing will handle this -// message, but a redraw will occur if the UI is marked as invalid +// QueueRedraw marks the UI as invalid and sends a nil message into the +// MsgChannel. Nothing will handle this message, but a redraw will occur func QueueRedraw() { + Invalidate() MsgChannel <- nil } |