diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-12-11 15:11:25 -0600 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-12-14 11:24:49 +0100 |
commit | d79458f464abccdb43e7d14753577698667ec81c (patch) | |
tree | d3dd2ba22c4c441135db86e1ef465c04bca8d323 /widgets/spinner.go | |
parent | 683df439f8df5f53ee00e96eb6b9d525b1c41ea9 (diff) | |
download | aerc-d79458f464abccdb43e7d14753577698667ec81c.tar.gz |
split: refactor split update logic
Refactor split update logic to more simply update the split. Through the
evolution of the split logic, additional variables were stored within
the account which allows for cleaner updating of the split.
Compare selected UID instead of pointer to message when deciding not to
update split.
Allow splits to be created and closed when no message is selected. The
split will be filled with a ui.Fill (blank). The user will only see a
border at the split location when no message is selected.
Rename clearSplit to closeSplit, as it is only used in the case when the
user doesn't want a split anymore.
Ensure that the selected UID is reset to the magic UID when there are no
messages left in the message store.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
Diffstat (limited to 'widgets/spinner.go')
0 files changed, 0 insertions, 0 deletions