mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 02:24:12 +01:00
Utilise object destructuring in parameter lists of stray map definitions.
This commit is contained in:
@@ -1158,15 +1158,15 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), {
|
||||
|
||||
// text edit mode
|
||||
bind(["u"], "Undo changes",
|
||||
function (args) {
|
||||
editor.editor.undo(Math.max(args.count, 1));
|
||||
function ({ count }) {
|
||||
editor.editor.undo(Math.max(count, 1));
|
||||
editor.deselect();
|
||||
},
|
||||
{ count: true, noTransaction: true });
|
||||
|
||||
bind(["<C-r>"], "Redo undone changes",
|
||||
function (args) {
|
||||
editor.editor.redo(Math.max(args.count, 1));
|
||||
function ({ count }) {
|
||||
editor.editor.redo(Math.max(count, 1));
|
||||
editor.deselect();
|
||||
},
|
||||
{ count: true, noTransaction: true });
|
||||
|
||||
Reference in New Issue
Block a user