mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:32:25 +01:00
Restrict history completion to 100 items by default.
This commit is contained in:
@@ -1332,12 +1332,14 @@ function Completion() //{{{
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
history: function _history(context)
|
history: function _history(context, maxItems)
|
||||||
{
|
{
|
||||||
context.format = history.format;
|
context.format = history.format;
|
||||||
context.title = ["History"]
|
context.title = ["History"]
|
||||||
context.compare = null;
|
context.compare = null;
|
||||||
//context.background = true;
|
//context.background = true;
|
||||||
|
if (context.maxItems == null)
|
||||||
|
context.maxItems = 100;
|
||||||
context.regenerate = true;
|
context.regenerate = true;
|
||||||
context.generate = function () history.get(context.filter, this.maxItems);
|
context.generate = function () history.get(context.filter, this.maxItems);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user