Skip to content

Commit 4a6041f

Browse files
committed
Exclude "." from file path suggestions
It looks funny and doesn't have any value.
1 parent fee5794 commit 4a6041f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/gui/controllers/helpers/suggestions_helper.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ func (self *SuggestionsHelper) GetFilePathSuggestionsFunc() func(string) []*type
103103
if err != nil {
104104
return err
105105
}
106-
trie.Insert(patricia.Prefix(path), path)
106+
if path != "." {
107+
trie.Insert(patricia.Prefix(path), path)
108+
}
107109
return nil
108110
})
109111

0 commit comments

Comments
 (0)