From 84d75e64e4651c592e48663dacbb68d46018c87b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 12 Oct 2008 20:52:40 +0000 Subject: [PATCH] Fix completion slowness --- content/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/ui.js b/content/ui.js index bb51b3bb..cf81e998 100644 --- a/content/ui.js +++ b/content/ui.js @@ -1298,7 +1298,7 @@ liberator.ItemList = function (id) //{{{ function fill(offset) { let diff = offset - startIndex; - if (/* diff == 0 ||*/ offset < 0 || completions.length && offset >= completions.length) + if (offset == null || offset - startIndex == 0 || offset < 0 || completions.length && offset >= completions.length) return; startIndex = offset; @@ -1369,7 +1369,7 @@ liberator.ItemList = function (id) //{{{ { minHeight = 0; autoSize(); - setTimeout(function () { fill(startIndex); }, 0); + setTimeout(function () { fill(null); }, 0); } container.collapsed = false; },