diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/dirlist.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go index 68ba61c..6214c8e 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 } |