summary refs log tree commit diff stats
path: root/commands/msg/delete.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/delete.go')
-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 {