aboutsummaryrefslogtreecommitdiff
path: root/confirm.go
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-04-08 00:10:13 +0100
committerAria Shrimpton <me@aria.rip>2024-04-08 00:10:13 +0100
commit8c49b12e5b9563113393f9d3a28499fb8538ddcb (patch)
tree8f8d8d3ebc724256355b5d1974e41f7960005eec /confirm.go
parentf15d79198259ae3107fd5847ba8127ddf863af80 (diff)
actually filter based on initial command line
Diffstat (limited to 'confirm.go')
-rw-r--r--confirm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/confirm.go b/confirm.go
index 31ce746..810547a 100644
--- a/confirm.go
+++ b/confirm.go
@@ -13,10 +13,10 @@ type confirmModel struct {
doRun bool
selected item
viewport viewport.Model
- returnTo selectingModel
+ returnTo *selectingModel
}
-func switchToConfirm(m selectingModel) (confirmModel, tea.Cmd) {
+func switchToConfirm(m *selectingModel) (confirmModel, tea.Cmd) {
model := confirmModel{
selected: m.list.SelectedItem().(item),
returnTo: m,