Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions pkg/tui/components/messages/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type renderedItem struct {
id int // Message ID or index as int
view string // Cached rendered content
height int // Height in lines
start int // Starting line position in complete content
end int // Ending line position in complete content
}

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

// Update position information
item.start = currentPosition
if item.height > 0 {
item.end = currentPosition + item.height - 1
} else {
Expand All @@ -370,9 +368,6 @@ func (m *model) ensureAllItemsRendered() {
allLines = append(allLines, "")
currentPosition += 1
}

// Update cache with position information
m.renderedItems[i] = item
}

m.rendered = strings.Join(allLines, "\n")
Expand Down
Loading