Skip to content

Commit 9c00fee

Browse files
Fixup formatting
1 parent 52df464 commit 9c00fee

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

table/render_init.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ func (t *Table) initForRenderRowsStringify(rows []Row, hint renderHint) []rowStr
247247
if t.rowPainter != nil && hint.isRegularRow() {
248248
t.rowsColors[idx] = t.rowPainter(row)
249249
}
250-
251250
rowsStr[idx] = t.analyzeAndStringify(row, hint)
252251
}
253252
return rowsStr
@@ -268,7 +267,7 @@ func (t *Table) initForRenderSortRows() {
268267

269268
// sort the rows
270269
sortedRowIndices := t.getSortedRowIndices()
271-
t.sortedRowIndices = sortedRowIndices
270+
272271
sortedRows := make([]rowStr, len(t.rows))
273272
for idx := range t.rows {
274273
sortedRows[idx] = t.rows[sortedRowIndices[idx]]

table/sort.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ func (t *Table) getSortedRowIndices() []int {
7575
})
7676
}
7777

78+
t.sortedRowIndices = sortedIndices
79+
7880
return sortedIndices
7981
}
8082

0 commit comments

Comments
 (0)