diff --git a/pkg/gui/controllers/helpers/suggestions_helper.go b/pkg/gui/controllers/helpers/suggestions_helper.go index c68a40a7c..38ef45430 100644 --- a/pkg/gui/controllers/helpers/suggestions_helper.go +++ b/pkg/gui/controllers/helpers/suggestions_helper.go @@ -103,7 +103,9 @@ func (self *SuggestionsHelper) GetFilePathSuggestionsFunc() func(string) []*type if err != nil { return err } - trie.Insert(patricia.Prefix(path), path) + if path != "." { + trie.Insert(patricia.Prefix(path), path) + } return nil })