aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 68ba61cb..6214c8e1 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -165,7 +165,7 @@ func folderMatches(folder string, pattern string) bool {
return false
}
if pattern[0] == '~' {
- r, err := regexp.Compile(pattern)
+ r, err := regexp.Compile(pattern[1:])
if err != nil {
return false
}