6e11a020d4498f77c858af6b2635bc227537830e — Tom Lebreux a month ago 2925bdf
Fix segfault on :select-message for unloaded messages

Signed-off-by: Tom Lebreux <tomlebreux@cock.li>
1 files changed, 3 insertions(+), 0 deletions(-)

M commands/account/select-message.go
M commands/account/select-message.go => commands/account/select-message.go +3 -0
@@ 29,6 29,9 @@ if acct == nil {
  		return errors.New("No account selected")
  	}
+ 	if acct.Messages().Empty() {
+ 		return nil
+ 	}
  	acct.Messages().Select(n)
  	return nil
  }