diff options
author | Robin Jarry <robin@jarry.cc> | 2022-07-14 18:29:56 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-23 22:00:25 +0200 |
commit | 171fefd2095132f49d84a4e9426fec0b293fa7ba (patch) | |
tree | 2a9bb3971b79c232ce32f10109d03fec6887e2ad /config/config.go | |
parent | c841f36513ffdaffbf4b68e5f108c97a45745092 (diff) | |
download | aerc-171fefd2095132f49d84a4e9426fec0b293fa7ba.tar.gz |
tabs: make fields private
The Tabs object exposes an array of Tab objects and the current selected
index in that array. The these two fields are sometimes modified in
goroutines, which can lead to data races causing fatal out of bounds
accesses on the tab array.
Hide these fields as private API. Expose only what needs to be seen from
the outside. This will prepare for protecting concurrent access with
a lock in the next commit.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'config/config.go')
0 files changed, 0 insertions, 0 deletions