From 75109283f91ef98f980f8f69100aa0ec017aa4f8 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Wed, 21 Sep 2016 21:03:19 +0200
Subject: [PATCH] Fixed some minor history bugs

---
 res/search.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/res/search.js b/res/search.js
index 2e41aec..52b1f9b 100644
--- a/res/search.js
+++ b/res/search.js
@@ -21,7 +21,7 @@ var search_history = {
             return x != query;
         }).reverse();
         tmp.push(query);
-        localStorage.setItem('history', JSON.stringify(tmp.slice(Math.max(0, tmp.length - tmp.max_size))));
+        localStorage.setItem('history', JSON.stringify(tmp.slice(Math.max(0, tmp.length - search_history.max_size))));
     }
 };
 
-- 
GitLab