cmd/notifications.go
changeset 167 1341bacd01c9
parent 166 79c0f8db66ff
child 185 564d92b54b00
--- a/cmd/notifications.go	Sat Jul 15 21:58:24 2017 +0200
+++ b/cmd/notifications.go	Sat Jul 15 22:25:46 2017 +0200
@@ -104,8 +104,8 @@
 			notifications = newNotifications
 		}
 
-		if accountsOpts.limit > 0 && len(notifications) > int(accountsOpts.limit) {
-			notifications = notifications[:accountsOpts.limit]
+		if accountsOpts.keep > 0 && len(notifications) > int(accountsOpts.keep) {
+			notifications = notifications[:accountsOpts.keep]
 		}
 		obj = notifications
 	} else if opt.notifID > 0 {