1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-12-18 08:51:15 +01:00
aerc/app
Matthew Phillips 44048c1c8e account: fix split views when sidebar is hidden
updateSplitView() used hardcoded grid positions that assumed the
sidebar was always visible, causing a crash when opening a split
view with the sidebar hidden.

closeSplit() also ignored the sidebar visibility state, causing
the sidebar to reappear when closing a split.

Fix both by checking hasSidebar() for correct column positions
and reusing buildGrid() in closeSplit().

Fixes: 66cf16c4 ("commands: add :toggle-sidebar command")
Signed-off-by: Matthew Phillips <matthew@matthewphillips.info>
Tested-by: Julio B <julio.bacel@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2025-12-11 09:16:11 +01:00
..
account-wizard.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
account.go account: fix split views when sidebar is hidden 2025-12-11 09:16:11 +01:00
aerc.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
app.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
authinfo.go lint: update golangci-lint to 1.61.0 2024-09-20 09:23:36 +02:00
compose.go compose: limit header whitespace removal to format-flowed 2025-12-11 09:15:59 +01:00
dialog.go aerc: add quake-mode terminal 2024-10-08 12:45:21 +02:00
dirlist.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
dirtree.go account: allow globs in folders-sort 2025-05-07 17:13:23 +02:00
exline.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
getpasswd.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
headerlayout.go widgets: rename package to app 2023-10-10 11:37:56 +02:00
listbox.go listbox: fix crash scrolling within empty selection 2025-10-30 21:10:09 +01:00
msglist.go msglist: make clicking messages work on initial load 2025-09-26 16:54:27 +02:00
msgviewer.go config: add contextual viewer configuration 2025-10-30 21:17:44 +01:00
partswitcher.go config: add contextual viewer configuration 2025-10-30 21:17:44 +01:00
pgpinfo.go lint: update golangci-lint to 1.61.0 2024-09-20 09:23:36 +02:00
providesmessage.go treewide: replace uint32 uids with opaque strings 2024-08-28 12:06:01 +02:00
quake.go aerc: add quake-mode terminal 2024-10-08 12:45:21 +02:00
scrollable.go chore: switch to using stdlib helper functions 2025-08-04 12:47:05 +02:00
selector.go chore: switch to using stdlib helper functions 2025-08-04 12:47:05 +02:00
spinner.go log: move package to lib 2024-02-14 23:04:38 +01:00
status.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00
terminal.go reload: fix crash when reloading via IPC 2025-09-23 14:02:37 +02:00