Skip to content

Commit

Permalink
Match files to globs even when the files are not mounted
Browse files Browse the repository at this point in the history
This fixes a small bug where the status command did not correctly show
the glob pattern a file is associated with when the vault was closed.
  • Loading branch information
Jesse Swidler committed Nov 29, 2019
1 parent 8c7325c commit 588d10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func Status(opts Options) ([]string, [][]string) {
table = append(table, []string{
filemeta.RelPath,
updated,
firstMatchedPattern(datafile.Path(), ctx.Config.Patterns),
firstMatchedPattern(filemeta.RelPath, ctx.Config.Patterns),
filemeta.IdString(),
})
}
Expand Down

0 comments on commit 588d10b

Please sign in to comment.