mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:12:26 +01:00
Fix <Tab> completion slowness
This commit is contained in:
@@ -1298,7 +1298,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
function fill(offset)
|
function fill(offset)
|
||||||
{
|
{
|
||||||
let diff = offset - startIndex;
|
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;
|
return;
|
||||||
|
|
||||||
startIndex = offset;
|
startIndex = offset;
|
||||||
@@ -1369,7 +1369,7 @@ liberator.ItemList = function (id) //{{{
|
|||||||
{
|
{
|
||||||
minHeight = 0;
|
minHeight = 0;
|
||||||
autoSize();
|
autoSize();
|
||||||
setTimeout(function () { fill(startIndex); }, 0);
|
setTimeout(function () { fill(null); }, 0);
|
||||||
}
|
}
|
||||||
container.collapsed = false;
|
container.collapsed = false;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user