From 4a6041f3ce4c2c2ed87294802e714c8272434082 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 10 Jul 2025 14:39:16 +0200 Subject: [PATCH] Exclude "." from file path suggestions It looks funny and doesn't have any value. --- pkg/gui/controllers/helpers/suggestions_helper.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 })