1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 01:05:46 +01:00

Fix [count]u

This commit is contained in:
Kris Maglione
2009-08-23 22:44:16 -04:00
parent fc0c0d38a4
commit 776f3f4058

View File

@@ -595,12 +595,12 @@ function Tabs() //{{{
"Undo closing of a tab",
function (args)
{
let count = args.count;
args = args[0];
if (count < 1)
count = 1;
if (args.length)
args = args[0];
else
args = Math.max(args.count, 0);
let m;
if (m = /^(\d+)(:|$)/.exec(args || '1'))
window.undoCloseTab(Number(m[1]) - 1);
else if (args)