aerc/commands
Robin Jarry 171fefd209 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>
2022-07-23 22:00:25 +02:00
..
account account: import mbox file to a folder 2022-07-14 23:14:56 +02:00
compose tabs: make fields private 2022-07-23 22:00:25 +02:00
mode commands: implement a no-quit mode 2022-07-14 23:15:02 +02:00
msg tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
msgview tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
terminal tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
cd.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
choose.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
commands.go commands: implement prompt completion 2022-07-02 18:36:40 +02:00
ct.go commands: use SelectedAccountUiConfig instead of explicit nil check 2022-03-16 17:02:36 +01:00
exec.go tabs: rename SelectedTab to SelectedTabContent 2022-07-23 22:00:21 +02:00
global.go Implement basic tab completion support 2019-06-29 14:24:19 -04:00
help.go help: add completions 2022-05-23 20:59:10 +02:00
history.go Add command history and cycling 2019-07-26 14:29:34 -04:00
move-tab.go tabs: make fields private 2022-07-23 22:00:25 +02:00
new-account.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
next-tab.go statusline: implement per-account status 2022-03-18 23:42:07 +01:00
pin-tab.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
prompt.go commands: implement prompt completion 2022-07-02 18:36:40 +02:00
pwd.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
quit.go commands: implement a no-quit mode 2022-07-14 23:15:02 +02:00
set.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
term.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
util.go logging: added a log on panic 2022-03-23 20:56:09 +01:00