4a4050ee0f
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> |
||
---|---|---|
.. | ||
account-wizard.go | ||
account.go | ||
aerc.go | ||
common.go | ||
compose.go | ||
dirlist.go | ||
dirtree.go | ||
exline.go | ||
getpasswd.go | ||
headerlayout.go | ||
msglist.go | ||
msgviewer.go | ||
pgpinfo.go | ||
providesmessage.go | ||
scrollable.go | ||
selector.go | ||
spinner.go | ||
status.go | ||
tabhost.go | ||
terminal.go |