1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 17:27:58 +01:00

Fix issue with smooth-scroll.js

This commit is contained in:
Kris Maglione
2011-06-05 18:56:33 -04:00
parent 0ed9dc335b
commit 0195b4f1c9
3 changed files with 7 additions and 4 deletions

View File

@@ -477,7 +477,8 @@ var Mappings = Module("mappings", {
return;
}
if (args[1] && !args["-count"] && !args["-ex"] && !args["-javascript"])
if (args[1] && !/^<nop>$/i.test(args[1])
&& !args["-count"] && !args["-ex"] && !args["-javascript"])
args[1] = "<count>" + args[1];
let [lhs, rhs] = args;