diff options
author | Robin Jarry <robin@jarry.cc> | 2023-09-05 21:55:11 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-09-19 16:49:59 +0200 |
commit | c2a4fc7fdfae6469e782c5daac6772e3ec4d52cb (patch) | |
tree | ae8220806157571c02bfda0bdb6dff9c1230b5bd /commands/exec.go | |
parent | 43df87552c2c54a7cc346cb044d08dc8ee5b6925 (diff) | |
download | aerc-c2a4fc7fdfae6469e782c5daac6772e3ec4d52cb.tar.gz |
compose: avoid panic when deleting the last header
When removing the last header, the focusable list may be empty, and the
focused index becomes invalid. Avoid out of bounds access.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Inwit <inwit@sindominio.net>
Diffstat (limited to 'commands/exec.go')
0 files changed, 0 insertions, 0 deletions