aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/getpasswd.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-09-05 21:55:11 +0200
committerRobin Jarry <robin@jarry.cc>2023-09-19 16:49:59 +0200
commitc2a4fc7fdfae6469e782c5daac6772e3ec4d52cb (patch)
treeae8220806157571c02bfda0bdb6dff9c1230b5bd /widgets/getpasswd.go
parent43df87552c2c54a7cc346cb044d08dc8ee5b6925 (diff)
downloadaerc-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 'widgets/getpasswd.go')
0 files changed, 0 insertions, 0 deletions