diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-05-07 05:29:43 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-05-08 18:36:49 +0200 |
commit | 4a4050ee0f3344824ee99c53747b68afeadcaceb (patch) | |
tree | e1928f47ae179848fd7cff153932f4a2a3b4bea9 /commands/compose/sign.go | |
parent | b57fceaad4bfcbd4ca3022e013b73eff72079c0b (diff) | |
download | aerc-0.10.0.tar.gz |
ui: fix panic in selector when resizing terminal0.10.0
Fix panic when resizing the terminal by dynamically adjusting the width
of the option selector. The selector does not check the width of the
terminal before printing. This can lead to a panic in the account wizard
when reducing the terminal width.
If the terminal width is not large enough, the space between the options
is reduced. If this is still not enough, then the selector will only
show the focused option and arrows indicating the alternatives.
Fixes: https://todo.sr.ht/~rjarry/aerc/41
Reported-by: Omar Polo <op@omarpolo.com>
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/compose/sign.go')
0 files changed, 0 insertions, 0 deletions