From 588d10b3249148fa8db9d41d8b1a9b7c54862ade Mon Sep 17 00:00:00 2001 From: Jesse Swidler Date: Thu, 28 Nov 2019 20:00:45 -0500 Subject: [PATCH] Match files to globs even when the files are not mounted 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. --- pkg/app/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/status.go b/pkg/app/status.go index a5d7a8b..03f5d30 100644 --- a/pkg/app/status.go +++ b/pkg/app/status.go @@ -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(), }) }