mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-25 09:15:46 +01:00
Fix [count]u
This commit is contained in:
@@ -595,12 +595,12 @@ function Tabs() //{{{
|
|||||||
"Undo closing of a tab",
|
"Undo closing of a tab",
|
||||||
function (args)
|
function (args)
|
||||||
{
|
{
|
||||||
let count = args.count;
|
if (args.length)
|
||||||
args = args[0];
|
args = args[0];
|
||||||
|
else
|
||||||
if (count < 1)
|
args = Math.max(args.count, 0);
|
||||||
count = 1;
|
|
||||||
|
|
||||||
|
let m;
|
||||||
if (m = /^(\d+)(:|$)/.exec(args || '1'))
|
if (m = /^(\d+)(:|$)/.exec(args || '1'))
|
||||||
window.undoCloseTab(Number(m[1]) - 1);
|
window.undoCloseTab(Number(m[1]) - 1);
|
||||||
else if (args)
|
else if (args)
|
||||||
|
|||||||
Reference in New Issue
Block a user