refactor: naming convention

This commit is contained in:
decentral1se 2023-05-10 19:01:57 +02:00
parent bec540d8e5
commit 48cb580a49
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410

View File

@ -195,8 +195,8 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// TODO: implement cursor for scrolling up/down filtered // TODO: implement cursor for scrolling up/down filtered
// results so we can view the PDF contents as desired // results so we can view the PDF contents as desired
// it's currently just the last one (closest to input) // it's currently just the last one (closest to input)
lastdatasheet := m.filteredDatasheets[len(m.filteredDatasheets)-1] lastDatasheet := m.filteredDatasheets[len(m.filteredDatasheets)-1]
viewportText := m.datasheetFromName(lastdatasheet) viewportText := m.datasheetFromName(lastDatasheet)
m.datasheetViewport.SetContent(viewportText) m.datasheetViewport.SetContent(viewportText)
} }