small fixes

This commit is contained in:
Kujtim Hoxha
2025-04-03 17:38:28 +02:00
parent cfdd687216
commit 795b369219
7 changed files with 13 additions and 24 deletions
+2 -2
View File
@@ -127,10 +127,10 @@ func (g *gridLayout) View() string {
// Render each row
rows := make([]string, g.rows)
for i := 0; i < g.rows; i++ {
for i := range g.rows {
// Render each column in this row
cols := make([]string, len(g.panes[i]))
for j := 0; j < len(g.panes[i]); j++ {
for j := range g.panes[i] {
if g.panes[i][j] == nil {
cols[j] = ""
continue
+1 -6
View File
@@ -159,12 +159,7 @@ func max(a, b int) int {
return b
}
func min(a, b int) int {
if a < b {
return a
}
return b
}
type whitespace struct {
style termenv.Style