ref: 545c10329eb79633bf2dad81fd32576fd486b0da
parent: a14dc524b9ddd5c8f625e4add10dc5456b1e5597
author: Philip Silva <philip.silva@protonmail.com>
date: Tue Dec 29 19:39:35 EST 2020
len 0 check
--- a/browser/browser.go
+++ b/browser/browser.go
@@ -710,6 +710,10 @@
numCols := t.numColsMax()
useOneGrid := t.numColsMin() == t.numColsMax()
+ if numCols == 0 {
+ return nil
+ }
+
if useOneGrid {
uis := make([]duit.UI, 0, numRows*numCols)
for _, row := range t.rows {