diff --git a/Sources/Suggestions/SuggestionProcessing.swift b/Sources/Suggestions/SuggestionProcessing.swift index 27dfcab63..b80dbf20f 100644 --- a/Sources/Suggestions/SuggestionProcessing.swift +++ b/Sources/Suggestions/SuggestionProcessing.swift @@ -157,11 +157,18 @@ final class SuggestionProcessing { if case .bookmark = $0, $0.url?.naked == nakedUrl { return true } return false }), case let Suggestion.bookmark(title: title, url: url, isFavorite: isFavorite, allowedInTopHits: _) = newSuggestion { + #if os(macOS) // Copy allowedInTopHits from original suggestion return Suggestion.bookmark(title: title, url: url, isFavorite: isFavorite, allowedInTopHits: historySuggestion.allowedInTopHits) + #else + return Suggestion.bookmark(title: title, + url: url, + isFavorite: isFavorite, + allowedInTopHits: true) + #endif } else { return nil } @@ -178,10 +185,17 @@ final class SuggestionProcessing { if case .historyEntry = $0, $0.url?.naked == nakedUrl { return true } return false }), historySuggestion.allowedInTopHits { + #if os(macOS) return Suggestion.bookmark(title: title, url: url, isFavorite: isFavorite, allowedInTopHits: historySuggestion.allowedInTopHits) + #else + return Suggestion.bookmark(title: title, + url: url, + isFavorite: isFavorite, + allowedInTopHits: true) + #endif } else { return nil }