Skip to content

Commit

Permalink
fix(repl): select all only works on filtered items (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
nobe4 authored Sep 12, 2024
1 parent c9a720e commit 4803c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/repl/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func (m model) selectAll(selected bool) (tea.Model, tea.Cmd) {
items := []list.Item{}
for _, e := range m.list.Items() {
for _, e := range m.list.VisibleItems() {
if i, ok := e.(item); ok {
i.selected = selected
items = append(items, i)
Expand Down

0 comments on commit 4803c28

Please sign in to comment.