From 74a18293e40c7360fb99715e462a93b8d22f6670 Mon Sep 17 00:00:00 2001 From: anthony Date: Mon, 7 Mar 2022 09:35:47 +0000 Subject: [PATCH] Quick fix for error when opening history window --- frontends/gnustep/Website.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/gnustep/Website.m b/frontends/gnustep/Website.m index 01ac752bc..72a92f92d 100644 --- a/frontends/gnustep/Website.m +++ b/frontends/gnustep/Website.m @@ -183,7 +183,7 @@ HISTORY_PATH]; NSError *error = nil; NSPredicate *historyPredicate = [NSPredicate predicateWithFormat: - @"self beginswith 'history_'"]; + @"count >= 8 AND self beginswith 'history_'"]; NSMutableArray *files = [[[NSFileManager defaultManager] contentsOfDirectoryAtPath: path error: &error] mutableCopy]; if (error != nil) {