mirror of
https://github.com/wagoodman/dive
synced 2026-03-14 14:25:50 +01:00
fix: pass nil for filterRegex when extracting file
This commit is contained in:
parent
6a3aa91a6a
commit
aff775de1d
1 changed files with 4 additions and 3 deletions
|
|
@ -2,14 +2,15 @@ package view
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
|
||||
"github.com/anchore/go-logger"
|
||||
"github.com/wagoodman/dive/cmd/dive/cli/internal/ui/v1"
|
||||
v1 "github.com/wagoodman/dive/cmd/dive/cli/internal/ui/v1"
|
||||
"github.com/wagoodman/dive/cmd/dive/cli/internal/ui/v1/format"
|
||||
"github.com/wagoodman/dive/cmd/dive/cli/internal/ui/v1/key"
|
||||
"github.com/wagoodman/dive/cmd/dive/cli/internal/ui/v1/viewmodel"
|
||||
"github.com/wagoodman/dive/internal/log"
|
||||
"github.com/wagoodman/dive/internal/utils"
|
||||
"regexp"
|
||||
|
||||
"github.com/awesome-gocui/gocui"
|
||||
"github.com/wagoodman/dive/dive/filetree"
|
||||
|
|
@ -321,7 +322,7 @@ func (v *FileTree) toggleSortOrder() error {
|
|||
}
|
||||
|
||||
func (v *FileTree) extractFile() error {
|
||||
node := v.vm.CurrentNode(v.filterRegex)
|
||||
node := v.vm.CurrentNode(nil)
|
||||
for _, listener := range v.extractListeners {
|
||||
err := listener(node.Path())
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue