Fix resize when prompt is active

Fixes #1020
This commit is contained in:
Zachary Yedidia
2018-02-04 22:58:20 -05:00
parent f17b42bcd2
commit a37c30b889

View File

@@ -261,6 +261,11 @@ func (m *Messenger) Prompt(prompt, placeholder, historyType string, completionTy
event := <-events
switch e := event.(type) {
case *tcell.EventResize:
for _, t := range tabs {
t.Resize()
}
RedrawAll()
case *tcell.EventKey:
switch e.Key() {
case tcell.KeyCtrlQ, tcell.KeyCtrlC, tcell.KeyEscape: