diff options
author | Jason Cox <me@jasoncarloscox.com> | 2024-08-22 22:35:37 -0400 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-08-24 15:49:18 +0200 |
commit | 2950d919a5c5a55bd0eb53d6c41f989d8b70bd55 (patch) | |
tree | 35b18729253ad316bd9cfdbd64e212d330642ba4 /commands | |
parent | 4e950b989e3095794c1e95dee7cb6fb7bb472070 (diff) | |
download | aerc-2950d919a5c5a55bd0eb53d6c41f989d8b70bd55.tar.gz |
reload: reload everything if no flags are provided
Currently, the :reload command silently does nothing if no flags are
provided. Eliminate this confusion by reloading all reloadable configs
in the absence of flags.
Signed-off-by: Jason Cox <me@jasoncarloscox.com>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands')
-rw-r--r-- | commands/reload.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/reload.go b/commands/reload.go index cd32bb36..2888ef90 100644 --- a/commands/reload.go +++ b/commands/reload.go @@ -47,6 +47,12 @@ func (Reload) Aliases() []string { } func (r Reload) Execute(args []string) error { + if !r.Binds && !r.Conf && r.Style == "" { + r.Binds = true + r.Conf = true + r.Style = config.Ui.StyleSetName + } + reconfigure := false if r.Binds { |