From 63dea340074ba348ea3311433b76933dc2f8cdac Mon Sep 17 00:00:00 2001 From: David Dworken Date: Thu, 21 Sep 2023 11:35:47 -0700 Subject: [PATCH] Add comment to document a somewhat confusing function --- client/cmd/install.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/cmd/install.go b/client/cmd/install.go index 20cea94..2d12b99 100644 --- a/client/cmd/install.go +++ b/client/cmd/install.go @@ -174,6 +174,9 @@ func install(secretKey string, offline bool) error { return nil } +// Handles people running `hishtory update` from an old version of hishtory that +// doesn't support the control-r integration, so that they'll get control-r enabled +// but someone who has it explicitly disabled will keep it that way. func handleUpgradedFeatures() error { configContents, err := hctx.GetConfigContents() if err != nil {