mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-21 01:25:41 +02:00
Restrict history completion to 100 items by default.
This commit is contained in:
1 parent
9200548683
commit
b56f543e3f
1 file changed
+3
-1
@@ -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