summaryrefslogtreecommitdiff
path: root/theMagicOfAutocomplete.go
diff options
context:
space:
mode:
Diffstat (limited to 'theMagicOfAutocomplete.go')
-rw-r--r--theMagicOfAutocomplete.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go
index 9155517..dd75a23 100644
--- a/theMagicOfAutocomplete.go
+++ b/theMagicOfAutocomplete.go
@@ -40,7 +40,8 @@ func Autocomplete(dest any) *Argv {
// loads the argv autocomplete history file
all := NewArgvs()
- err := config.LoadCache(all, "argv", me.pb.AppInfo.APPNAME) //
+ fullname := config.MakeCacheFilename("argv", me.pb.AppInfo.APPNAME)
+ err := config.LoadFromFilename(all, fullname)
if err != nil {
// there is no history.
// todo: initialize the history file