aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-08-02 11:00:09 +0200
committerRobin Jarry <robin@jarry.cc>2023-08-04 11:32:40 +0200
commitf27b2d6150968bc03bfd8ba51b6048def6f4f57f (patch)
tree5ce365caec583237f6c49bfcd2bcf1da358a73b1
parenta3e811e00d8a7fe0f37d85557d7db60087967171 (diff)
downloadaerc-f27b2d6150968bc03bfd8ba51b6048def6f4f57f.tar.gz
aerc-f27b2d6150968bc03bfd8ba51b6048def6f4f57f.zip
wizard: allow ? in passwords
There is a default ? bind in the global context to show the current key bindings. It is completely useless in the wizard context and prevents users from typing ? if this character is in their password. Disable globals in the wizard bindings (equivalent of $noinherit=true). Reported-by: Brad <super1337@posteo.net> Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Koni Marti <koni.marti@gmail.com>
-rw-r--r--config/binds.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/binds.go b/config/binds.go
index b219adad..99c4df34 100644
--- a/config/binds.go
+++ b/config/binds.go
@@ -81,6 +81,7 @@ func defaultBindsConfig() *BindingConfig {
// These bindings are not configurable
wizard := NewKeyBindings()
wizard.ExKey = KeyStroke{Key: tcell.KeyCtrlE}
+ wizard.Globals = false
quit, _ := ParseBinding("<C-q>", ":quit<Enter>")
wizard.Add(quit)
return &BindingConfig{