abd9e78f02
Pressing `Enter` on a view that has not yet loaded messages (e.g. at startup) would return `nil` from `Selected()`. Accessing `msg.Uid` on a `nil` reference crashes aerc. This patch moves the `msg == nil` check before accessing `msg.Uid` thus avoiding the crash. To test this patch repeatedly press `Enter` on startup. |
||
---|---|---|
.. | ||
account.go | ||
cf.go | ||
clear.go | ||
compose.go | ||
mkdir.go | ||
next-folder.go | ||
next-result.go | ||
next.go | ||
search.go | ||
select.go | ||
sort.go | ||
view.go |