fix
This commit is contained in:
@@ -16,7 +16,7 @@ export default async function Command() {
|
|||||||
const spaces = JSON.parse(spacesOutput);
|
const spaces = JSON.parse(spacesOutput);
|
||||||
const currentSpace = JSON.parse(spaceOutput);
|
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}`);
|
const { stderr: stderr2 } = await runYabaiCommand(`-m space last --move ${currentSpace.index + 1}`);
|
||||||
if (stderr2) {
|
if (stderr2) {
|
||||||
console.log(stderr2);
|
console.log(stderr2);
|
||||||
|
|||||||
Reference in New Issue
Block a user