Skip to content
Snippets Groups Projects
Unverified Commit a1f06ae2 authored by Junegunn Choi's avatar Junegunn Choi
Browse files

Fix regression where empty preview content is not displayed

parent 69dffd78
No related branches found
No related tags found
No related merge requests found
......@@ -1845,9 +1845,7 @@ func (t *Terminal) Loop() {
lines = append(lines, line)
}
if err != nil {
if len(lines) > 0 {
t.reqBox.Set(reqPreviewDisplay, previewResult{version, lines, offset, ""})
}
t.reqBox.Set(reqPreviewDisplay, previewResult{version, lines, offset, ""})
break Loop
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment