mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-26 13:35:45 +01:00
Make further use of default parameters.
--HG-- extra : rebase_source : ab666bce7ed7e47c8f1e2bc4145f553da990d319
This commit is contained in:
@@ -784,11 +784,10 @@ var Buffer = Module("Buffer", {
|
||||
* @param {number} count The multiple of 'scroll' lines to scroll.
|
||||
* @optional
|
||||
*/
|
||||
scrollByScrollSize: function scrollByScrollSize(direction, count) {
|
||||
scrollByScrollSize: function scrollByScrollSize(direction, count = 1) {
|
||||
let { options } = this.modules;
|
||||
|
||||
direction = direction ? 1 : -1;
|
||||
count = count || 1;
|
||||
|
||||
if (options["scroll"] > 0)
|
||||
this.scrollVertical("lines", options["scroll"] * direction);
|
||||
|
||||
Reference in New Issue
Block a user