diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-10-17 15:16:09 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-18 22:20:37 +0200 |
commit | 556f346f96946a54223798685c445ec413a4031e (patch) | |
tree | 50c4f010119cd92c428ac378a8dbb2884596e54f /lib/ui/context.go | |
parent | 7647dfb8b47edbcb8080bd0327529383142ec888 (diff) | |
download | aerc-556f346f96946a54223798685c445ec413a4031e.tar.gz |
msgviewer: simplify filter and pager command handling
Refactor the filtering and paging logic to use several fewer goroutines.
Fixes data race condition with the timing of filter -> pager ->
terminal, can be found when switching message views fast.
Check if filter -> pager process is currently running before calling it
to start again. Fixes data race between fetching message body and
terminal starting. Both can initiate the copying process, and for long
running filters and fast message fetching, it is possible to have
fetched a message but still be running the filter when the terminal
starts.
Move StripAnsi to it's own file in lib/parse, similar to the hyperlinks
parser.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/ui/context.go')
0 files changed, 0 insertions, 0 deletions