aboutsummaryrefslogtreecommitdiff
path: root/commands/msg
diff options
context:
space:
mode:
authorSrivathsan Murali <sri@vathsan.com>2019-09-20 21:22:09 +0200
committerDrew DeVault <sir@cmpwn.com>2019-09-20 15:23:45 -0400
commit1bedb8fe06dd71b4ee044098b7f057b3bffd0efc (patch)
tree5587d2ffe4af714533442b52f848f60284bf9d63 /commands/msg
parent043a02d99d93441021788891d3f86c6fdeea22f0 (diff)
Config for deleting message from message viewer
As suggested in #268, this adds a behaviour setting for deleting message from message viewer.
Diffstat (limited to 'commands/msg')
-rw-r--r--commands/msg/delete.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/delete.go b/commands/msg/delete.go
index 677ea63..8fefbd5 100644
--- a/commands/msg/delete.go
+++ b/commands/msg/delete.go
@@ -47,7 +47,7 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error {
store.Next()
if isMsgView {
nextMsg := store.Selected()
- if nextMsg == msg {
+ if nextMsg == msg || !aerc.Config().Ui.NextMessageOnDelete {
aerc.RemoveTab(widget)
acct.Messages().Scroll()
} else {