aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 987d3133..d1bee8c6 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -598,9 +598,12 @@ func NewPartViewer(
var noFilter *ui.Grid
if filter != nil {
path, _ := os.LookupEnv("PATH")
+ var paths []string
for _, dir := range config.SearchDirs {
- path += fmt.Sprintf(":%s/filters", dir)
+ paths = append(paths, dir+"/filters")
}
+ paths = append(paths, path)
+ path = strings.Join(paths, ":")
filter.Env = os.Environ()
filter.Env = append(filter.Env, fmt.Sprintf("PATH=%s", path))
filter.Env = append(filter.Env,