From fc7b02051a27ec88254df7ae3946af728571931d Mon Sep 17 00:00:00 2001 From: Joshua Higgins Date: Fri, 10 Apr 2026 10:28:01 -0400 Subject: [PATCH] fix --- src/create-space-and-focus.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/create-space-and-focus.tsx b/src/create-space-and-focus.tsx index 00608b8..f51ed66 100644 --- a/src/create-space-and-focus.tsx +++ b/src/create-space-and-focus.tsx @@ -16,7 +16,7 @@ export default async function Command() { const spaces = JSON.parse(spacesOutput); const currentSpace = JSON.parse(spaceOutput); - if (spaces.length - currentSpace.index > 2) { + if (spaces.length - currentSpace.index > 1) { const { stderr: stderr2 } = await runYabaiCommand(`-m space last --move ${currentSpace.index + 1}`); if (stderr2) { console.log(stderr2);