File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
pkg/gui/controllers/helpers Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -215,10 +215,9 @@ func TestGetWindowDimensions(t *testing.T) {
215
215
<branches─────────>│ │
216
216
<commits──────────>│ │
217
217
<stash────────────>╰──────────────────────────────────╯
218
- <A───────>C <information──────────────────────────────────────────>
218
+ <A───────>B <information──────────────────────────────────────────>
219
219
A: appStatus
220
- B: statusSpacer1
221
- C: statusSpacer2
220
+ B: statusSpacer2
222
221
` ,
223
222
},
224
223
}
@@ -293,6 +292,11 @@ func renderLayout(windows map[string]boxlayout.Dimensions) string {
293
292
for _ , windowName := range windowNames {
294
293
dimensions := windows [windowName ]
295
294
295
+ zeroWidth := dimensions .X0 == dimensions .X1 + 1
296
+ if zeroWidth {
297
+ continue
298
+ }
299
+
296
300
singleRow := dimensions .Y0 == dimensions .Y1
297
301
oneOrTwoColumns := dimensions .X0 == dimensions .X1 || dimensions .X0 + 1 == dimensions .X1
298
302
You can’t perform that action at this time.
0 commit comments