mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 12:04:12 +01:00
Normalise the count arg of map actions with Math.max.
Passing an arg object to these actions as is done for commands might be better.
This commit is contained in:
@@ -334,7 +334,7 @@ function Tabs() //{{{
|
||||
liberator.echoerr("E94: No matching tab for " + arg);
|
||||
}
|
||||
else // just remove the current tab
|
||||
tabs.remove(tabs.getTab(), count > 0 ? count : 1, special, 0);
|
||||
tabs.remove(tabs.getTab(), Math.max(count, 1), special, 0);
|
||||
},
|
||||
{
|
||||
argCount: "?",
|
||||
|
||||
Reference in New Issue
Block a user