mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-18 15:05:46 +01:00
Fix stupid autocomplete sluggishness.
This commit is contained in:
@@ -492,9 +492,10 @@ function CommandLine() //{{{
|
|||||||
statusline.updateProgress("match " + (completions.selected + 1) + " of " + completions.items.length);
|
statusline.updateProgress("match " + (completions.selected + 1) + " of " + completions.items.length);
|
||||||
});
|
});
|
||||||
|
|
||||||
var autocompleteTimer = new Timer(201, 500, function autocompleteTell(tabPressed) {
|
var autocompleteTimer = new Timer(200, 500, function autocompleteTell(tabPressed) {
|
||||||
if (events.feedingKeys || !completions)
|
if (events.feedingKeys || !completions)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
completions.complete(true, false);
|
completions.complete(true, false);
|
||||||
completions.itemList.show();
|
completions.itemList.show();
|
||||||
});
|
});
|
||||||
@@ -1649,8 +1650,6 @@ function CommandLine() //{{{
|
|||||||
*/
|
*/
|
||||||
resetCompletions: function resetCompletions()
|
resetCompletions: function resetCompletions()
|
||||||
{
|
{
|
||||||
autocompleteTimer.reset();
|
|
||||||
|
|
||||||
// liberator.dump("Resetting completions...");
|
// liberator.dump("Resetting completions...");
|
||||||
if (completions)
|
if (completions)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user