Skip to content

Commit f5f02ea

Browse files
committed
Remove the start field from the renderedItem
It's not used Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent d455fb6 commit f5f02ea

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pkg/tui/components/messages/messages.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ type renderedItem struct {
4646
id int // Message ID or index as int
4747
view string // Cached rendered content
4848
height int // Height in lines
49-
start int // Starting line position in complete content
5049
end int // Ending line position in complete content
5150
}
5251

@@ -351,7 +350,6 @@ func (m *model) ensureAllItemsRendered() {
351350
item := m.renderItem(i, view)
352351

353352
// Update position information
354-
item.start = currentPosition
355353
if item.height > 0 {
356354
item.end = currentPosition + item.height - 1
357355
} else {

0 commit comments

Comments
 (0)