From f50181ba043225f4ae836b6ad72cd9fb04874aa4 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Mon, 5 Jun 2023 16:01:21 +0200 Subject: [PATCH] Fix radix --- src/excmds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/excmds.ts b/src/excmds.ts index fdf149d4..94b2c630 100644 --- a/src/excmds.ts +++ b/src/excmds.ts @@ -2616,7 +2616,7 @@ export async function tabprev(...args: string[]) { option["nowrap"] = Boolean(argOpt["--nowrap"]) option["noisy"] = Boolean(argOpt["--noisy"]) option["reverse"] = Boolean(argOpt["--reverse"]) - const increment = (parseInt(argOpt._.join(" ")) || 1) * (option["reverse"] ? -1 : 1) + const increment = (parseInt(argOpt._.join(" "), 10) || 1) * (option["reverse"] ? -1 : 1) return browser.tabs.query({ currentWindow: true, hidden: false }).then(tabs => { tabs.sort((t1, t2) => t1.index - t2.index) const curTab = tabs.findIndex(t => t.active)