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);