File tree Expand file tree Collapse file tree
pkg/tui/components/messages Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
@@ -370,9 +368,6 @@ func (m *model) ensureAllItemsRendered() {
370368 allLines = append (allLines , "" )
371369 currentPosition += 1
372370 }
373-
374- // Update cache with position information
375- m .renderedItems [i ] = item
376371 }
377372
378373 m .rendered = strings .Join (allLines , "\n " )
You can’t perform that action at this time.
0 commit comments