Fix ineffective break statement

This commit is contained in:
Junegunn Choi 2019-03-29 17:29:24 +09:00
parent 8d2fcd3518
commit 89e24bf8f2
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -1055,10 +1055,9 @@ func (t *Terminal) printPreview() {
}
return fillRet == tui.FillContinue
})
switch fillRet {
case tui.FillNextLine:
if fillRet == tui.FillNextLine {
continue
case tui.FillSuspend:
} else if fillRet == tui.FillSuspend {
break
}
t.pwindow.Fill("\n")